Jump to content

Reportbuilder with UniGui


erich.wanker
 Share

Recommended Posts

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 ..

 

Link to comment
Share on other sites

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;
Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...