You are reading help file online using chmlib.com
|
Rave Reports Developer Guide Render to PDF with NO Setup . |
Top Previous Next |
QUESTION: How do I go directly to a PDF file without displaying the setup dialog box?
SOLUTION: Starting with Rave 4, you have the ability to save reports in a PDF file. To accomplish this without any user intervention via the setup dialog, drop a RvRenderPDF component on your form along with your RvSystem component. Make sure the RvRenderPDF "Active" property is set to true. Then execute the following code in your Button / Menu OnClick event:
Delphi Example: procedure TForm1.Button1Click(Sender: TObject); begin RvSystem1.DefaultDest := rdFile; RvSystem1.DoNativeOutput := false; RvSystem1.RenderObject := RvRenderPDF1; RvSystem1.OutputFileName := 'test1.pdf'; RvSystem1.SystemSetups := RvSystem1.SystemSetups - [ssAllowSetup]; RvSystem1.Execute; end;
C++Builder Example void __fastcall TForm1::Button1Click(TObject *Sender) { RvSystem1->DefaultDest = rdFile; RvSystem1->DoNativeOutput = false; RvSystem1->RenderObject = RvRenderPDF1; RvSystem1->OutputFileName = "test.pdf"; RvSystem1->SystemSetups = RvSystem1->SystemSetups >> ssAllowSetup; RvSystem1->Execute(); }
|
You are reading help file online using chmlib.com
|