milton luiz Posted May 3, 2016 Posted May 3, 2016 I'm using RAVEREPORT to generate reports in PDF on unigui as extracted code in Forun UniServerModule.RvSystem.DefaultDest:= rdFile; UniServerModule.RvSystem.DoNativeOutput:= false; UniServerModule.RvSystem.RenderObject:= UniServerModule.rvRenderPDF; UniServerModule.RvSystem.OutputFileName:= UniServerModule.LocalCachePath+'boletim'+turma_boletim+'.pdf'; UniServerModule.RvSystem.SystemSetups:= UniServerModule.RvSystem.SystemSetups -[ssAllowSetup]; UniServerModule.Rv_RelBolTur.projectfile:= 'C:\Portal_Aluno_Cnslv\Rv_RelBolTur.rav'; UniServerModule.Rv_RelBolTur.Engine:= UniServerModule.RvSystem; UniServerModule.Rv_RelBolTur.Execute; UniFrmRelBolTur.ShowModal(); when a User will issue a report (PDF ) in the program appears (PDF) last generated report.It presents the latest generated in memory and not apreseta the youngest.what can I be doing in this case ??? Quote
Administrators Farshad Mohajeri Posted May 3, 2016 Administrators Posted May 3, 2016 UniServerModule.RvSystem.OutputFileName:= UniServerModule.LocalCachePath+'boletim'+turma_boletim+'.pdf'; You need to use a unique name for each generated report. See our fast report demo to see how unique names are generated. Quote
Administrators Farshad Mohajeri Posted May 3, 2016 Administrators Posted May 3, 2016 Have you placed your report components on ServerModule? It is not correct place. MainModule is the right place. Quote
milton luiz Posted May 4, 2016 Author Posted May 4, 2016 when I put the reports of components of error MainModule line: UniMainModule.RvSystem.OutputFileName: = UniMainModule.LocalCachePath + 'newsletter' + turma_boletim + 'pdf.'; error: '[DCC Error] PortalProfessor.pas (493): E2003 Undeclared identifier:' LocalCachePath ' can anybody help me? Quote
Jean-Marc Kiener Posted September 5, 2016 Posted September 5, 2016 Because RAVE is not thread save as far as i know we did the following: 1. Make a own Reportserver program who can called from your MainModule (we did a simple vcl programm with tcp connection made with delphi standard components + Rave + Gnostice for PDF Export ) 2. Call the Reportserver from Mainmodule via tcp connection (Any other Remote connection will do the job as well) 3. Wait until PDF is created and saved to disk from Reportserver ( Maybe ask Job status by polling Reportserver) 3. Grab the created PDF from the disk and present it to your customer. Quote
rencarnacion Posted September 5, 2016 Posted September 5, 2016 As far as I know Rave Reporte is Threat safe, Because Intraweb recommend Rave for make report Quote
Jean-Marc Kiener Posted September 7, 2016 Posted September 7, 2016 Ah OK. Good to know that rave is thread save. Anyway I think it is a good approach to export creating of reports to a external task. 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.