![]() |
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:
Dieser erzeugt eine leere pdf-Datei - weil ich ihm keinen Report übergeben habe.Rvsystem1.DefaultDest := rdFile; Rvsystem1.DoNativeOutput := false; Rvsystem1.RenderObject := RvRenderPDF1; Rvsystem1.OutputFileName := 'C:\Ablage\test1.pdf'; Rvsystem1.SystemSetups := Rvsystem1.SystemSetups - [ssAllowSetup]; Rvsystem1.Execute; Aber wie mache ich es? |
Re: Rave pdf automatisch erzeugen
rolf,
Code:
instead of calling the execute method of the RvSystem component you must call the Execute/ExecuteReport method of the RaveProject component.
RvProject1.Execute
that's all :wink: thomas, TeamNevrona |
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 07:51 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz