Jump to content

RAVEREPORT gerando PDF


milton luiz

Recommended Posts

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

Link to comment
Share on other sites

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

  • 4 months later...

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.

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.

×
×
  • Create New...