You are reading help file online using chmlib.com
|
Rave Reports Developer Guide Render NDR to PDF . |
Top Previous Next |
QUESTION: I have previously saved NDR files and I want to save them to PDF files. How would I do that?
SOLUTION: The following code starts with having a TRvRenderPDF component on your form named RenderPDF.
Delphi: procedure TForm1.Button1Click(Sender: TObject); var NDRStream: TMemoryStream; begin NDRStream := TMemoryStream.Create; try NDRStream.LoadFromFile('test.ndr'); RenderPDF.PrintRender(NDRStream, 'test.pdf'); finally NDRStream.Free; end; { tryf } ShowMessage('NDR Converted'); end;
C++Builder: void __fastcall TForm1::Button1Click(TObject *Sender) { TMemoryStream* NDRStream; NDRStream = new TMemoryStream; try { NDRStream->LoadFromFile("test.ndr"); RenderPDF->PrintRender(NDRStream, "test.pdf"); }// try __finally { delete NDRStream; }// __finally ShowMessage("NDR Converted"); } |
You are reading help file online using chmlib.com
|