Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Rave pdf automatisch erzeugen (https://www.delphipraxis.net/16351-rave-pdf-automatisch-erzeugen.html)

Rolf Rostig 15. Feb 2004 19:24


Rave pdf automatisch erzeugen
 
Hallo,

ich möchte wahlweise einen Report zum Drucker schicken oder als pdf automatisch speichern.
Diesen Code habe ich gefunden:

Delphi-Quellcode:
 
  Rvsystem1.DefaultDest := rdFile;
  Rvsystem1.DoNativeOutput := false;
  Rvsystem1.RenderObject := RvRenderPDF1;
  Rvsystem1.OutputFileName := 'C:\Ablage\test1.pdf';
  Rvsystem1.SystemSetups := Rvsystem1.SystemSetups - [ssAllowSetup];
  Rvsystem1.Execute;
Dieser erzeugt eine leere pdf-Datei - weil ich ihm keinen Report übergeben habe.
Aber wie mache ich es?

merlin17 16. Feb 2004 21:03

Re: Rave pdf automatisch erzeugen
 
rolf,
Code:
RvProject1.Execute
instead of calling the execute method of the RvSystem component you must call the Execute/ExecuteReport method of the RaveProject component.

that's all


:wink: thomas, TeamNevrona

Rolf Rostig 20. Feb 2004 10:58

Re: Rave pdf automatisch erzeugen
 
ich hab es jetzt so gelöst:

Delphi-Quellcode:
  rvproject1.SelectReport(ReportNr,true);
  rvproject1.Open;
  Rvsystem1.DefaultDest := rdFile;
  Rvsystem1.DoNativeOutput := false;
  Rvsystem1.RenderObject := RvRenderPDF1;
  Rvsystem1.OutputFileName := PdfZiel;
  Rvsystem1.SystemSetups := Rvsystem1.SystemSetups - [ssAllowSetup];
  rvproject1.Execute;


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz