You are reading help file online using chmlib.com
|
Rave Reports Developer Guide Render NDR to HTML . |
Top Previous Next |
QUESTION I have previously saved NDR files and I want to save them to HTML files. How would I do that?
SOLUTION The following code starts with having a TRvRenderHTML component on your form named RenderHTML.
NOTE: The starting file name given for the resulting html is 'test.html'. The actual files generated will reflect the name plus the page number. So for this example, the resulting file name will be 'test1.html', 'test2.html' and so forth.
Delphi: procedure TForm1.Button1Click(Sender: TObject); var NDRStream: TMemoryStream; begin NDRStream := TMemoryStream.Create; try NDRStream.LoadFromFile('test.ndr'); RenderHTML.PrintRender(NDRStream, 'test.html'); 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.html"); }// try __finally { delete NDRStream; }// __finally ShowMessage("NDR Converted"); } |
You are reading help file online using chmlib.com
|