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 PRN

Top  Previous  Next

QUESTION:

I have previously saved NDR files and I want to save them to printer (PRN) files. How would I do that?

 

SOLUTION:

This solution applies to Rave Reports version 5.1.2 or later. The following code starts with having a RvSystem component on your form named RvSystem1.

 

It is important to note that the current printer (default) will be used to generate the printer file. This means that the generated file can ONLY be sent to that printer since the contents of printer files are specific to the printer they were generated for.

 

Also, the copy binary command on some operating systems may have problems if you use the PRN extension.

    COPY filename.ext PRN: /B

 

Be advised that both "DoNativeOutput" and "RenderObject" are not required for this NDR file conversion and need not be set.

 

Delphi:

Procedure TForm1.Button1Click(Sender: TObject);

Begin

RvSystem1.DefaultDest := rdPrinter;

RvSystem1.SystemFiler.FileName := 'Test.NDR';

RvSystem1.SystemOptions := RvSystem1.SystemOptions + [soNoGenerate];

RvSystem1.SystemSetups := RvSystem1.SystemSetups - [ssAllowSetup];

RvSystem1.SystemFiler.StreamMode := smFile;

RvSystem1.OutputFileName := 'test1.ptr';

RvSystem1.Execute;

ShowMessage('Printer File created');

End;

 

C++Builder:

void __fastcall TForm1::Button1Click(TObject *Sender)

{

RvSystem1->DefaultDest = rdPrinter;

RvSystem1->SystemFiler->FileName = "Test.NDR";

RvSystem1->SystemOptions = RvSystem1->SystemOptions + [soNoGenerate];

RvSystem1->SystemSetups = RvSystem1->SystemSetups - [ssAllowSetup];

RvSystem1->SystemFiler->StreamMode = smFile;

RvSystem1->OutputFileName = "test1.ptr";

RvSystem1->Execute;

ShowMessage("Printer File created");

}



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