Solved

Rave report - render to pdf

Posted on 2011-03-19
2
2,321 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now