Jump to content

Recommended Posts

Posted

Hello,

 

 

Can i include Reportbuilder15 directly in UniGui?

Where should i drop the tppDBPipelines TppReport  - MainModule? 

 

 

Thanks for suggestions

and nice greetings from Gastein 

Erich

 

P.S.: - Since now:

i made a "normal" stand-alone 32bit exe file with: 

  • Zeos-Lib to conntect to a firebird database
  • ZQuerys and TDatasource to connect to the tables
  • tppDBPipelines TppReport  to create reports...

 

in my uniGui test - i start the exefile via shellexecute and parameters to generate reports ..

 

Posted

You must generate a PDF and then you can load in the browser.

 

You can check these function that I use in the DataModule :

 

procedure TUniMainModule.Imprimir(ReporteSalida: TppReport);
var
  lPDFDevice: TppPDFDevice;
  CacheFileName: string;
begin
 
  // creat and configure the PDFDevice
  lPDFDevice := TppPDFDevice.Create(nil);
  CacheFileName := UniServerModule.LocalCachePath + FormatDateTime('hhmmsszzz',
    NOW) + 'Reporte.pdf';
 
  try
    lPDFDevice.PDFSettings := ReporteSalida.PDFSettings;
    lPDFDevice.FileName := CacheFileName; // assign output stream
    lPDFDevice.Publisher := ReporteSalida.Publisher;
 
    // generate the report
 
    ReporteSalida.PrintToDevices;
    UniSession.SendFile(CacheFileName);
  finally
    lPDFDevice.Free;
  end;
 
end;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...