erich.wanker Posted April 1, 2014 Posted April 1, 2014 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 .. Quote
rencarnacion Posted April 1, 2014 Posted April 1, 2014 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; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.