Solved

Rave report - render to pdf

Posted on 2011-03-19
2
2,429 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
Connection between libmysql.dll and MySQL Versions 7 119
Convert a string into a TDateTime 5 72
creating threads in delphi 1 163
DBCtrlGrid, Delphi, Scroll 8 58
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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