FMX.Printer.AssignPrn

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure AssignPrn(var F: Text);

C++

extern DELPHI_PACKAGE void __fastcall AssignPrn(System::TextFile &F);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Printer.pas
FMX.Printer.hpp
FMX.Printer FMX.Printer

Description

Assigns a Text variable to the currently selected printer.

Call AssignPrn to assign a Text 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 Text variable can be open on the printer at a time. Opening a second causes an exception.

See Also