procedure AssignPrn(var F: Text);
extern DELPHI_PACKAGE void __fastcall AssignPrn(System::TextFile &F);
Assigns a TextFile variable to the currently selected printer.
Call AssignPrn to assign a TextFile variable to the current printer. Any Write or Writeln operation going to that file variable will be written on the printer using the canvas property's font. A new page is automatically started if a CR (carriage return) is encountered on or a Writeln is written to the last line on the page. Closing the text file will imply a call to the EndDoc method.
Note: Only one TextFile variable can be open on the printer at a time. Opening a second causes an exception.