CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


_bm0 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

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com