Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fast Report export when Intraweb app running as a service
#1
Hi,
I'm using Delphi 10.2 (Tokio) and Intraweb 15.1.10. I have an application running in a Windows server as a Service, created with default parameters. Recently I've added a new report created with Fast Report 6.5 (last version). When I run the application on my development computer, or I run the app in SA mode, the report shows a preview, and when I export report to PDF, the file is created correctly and the PDF is shown in a new window in browser. But when I run the App as a Windows Service, the file is created empty, and an empty page is shown in browser.
I've changed the directory in which the file is created to C:\Temp, without success. I've changed also the user used to start the service, without success. Here is the source used to create the PDF file:
    RPTOF is the Fast Report Object
    frxPDFExport1  is the Fast Report Export to PDF Filter object.

    RutaInformeOrden     := 'C:\Temp\';
    NombreFicheroPDF    := ChangeFileExt(System.IOUtils.TPath.GetRandomFileName, '.pdf');
    NombreFicheroPDF    := RutaInformeOrden + NombreFicheroPDF;

    frxPDFExport1.FileName        := NombreFicheroPDF;
    frxPDFExport1.DefaultPath    := RutaInformeOrden;
    frxPDFExport1.OpenAfterExport := False;
    frxPDFExport1.ShowDialog      := False;
    RptOF.Export(frxPDFExport1);               <-- Here the file is created, empty when service, full as a SA
    // Open PDF in a new window
    URLFicheroPDF := TIWAppCache.AddFileToCache(Self, NombreFicheroPDF, TIWMimeTypes.GetAsString(mtPDF), ctOneTime);
    WebApplication.NewWindow(URLFicheroPDF);


Could you please help me with this problem?

KR,

                Venancio Lasquíbar
Reply


Messages In This Thread
Fast Report export when Intraweb app running as a service - by v.lasquibar@telefonica.net - 01-04-2020, 04:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)