Solved

Rave report - render to pdf

Posted on 2011-03-19
2
2,401 Views
Last Modified: 2012-05-11
i already got many help doing a rave report -  code based report -

  -       http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_26887858.html?cid=239#a35148858
  -       http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_26854889.html
  -       http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_26887858.html

now how should I a function to render the report to *.pdf

found

http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_22457720.html   but not sure how to port to my problem

(do not have a  rave report file , ....  )
0
Comment
Question by:BdLm
2 Comments
 
LVL 24

Accepted Solution

by:
jimyX earned 250 total points
ID: 35171004
Use TRvRenderPDF:
procedure TForm1.Button1Click(Sender: TObject);
begin
  RvSystem1.Generate;
  RvRenderPDF1.PrintRender(RvSystem1.Stream,'c:\test.pdf');
end;

Open in new window


And if you do not want a fixed path, then use SaveDialog to have an option of selecting where to save the pdf file.
procedure TForm1.Button1Click(Sender: TObject);
begin
  RvSystem1.Generate;
  SaveDialog1.Filter := 'PDF Files|*.PDF';
  if SaveDialog1.Execute then
    RvRenderPDF1.PrintRender(RvSystem1.Stream,SaveDialog1.FileName);
end;

Open in new window

0
 
LVL 8

Author Closing Comment

by:BdLm
ID: 35176698
fine !!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FMX StringGrid1->Canvas->FillRect Problem 3 171
Breakpoint doesn't stop in my variable 3 30
can i put an image from resource into image tag ? 6 27
MS Access from Delphi 31 60
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question