Platoo TXReport TTXPrinter

Contents - Methods - Properties

Printer control component.


Description
Application that uses TXReport components must have at least one TTXPrinter component. Application can have several TTXPrinter components that can be connected to different printer hardware. TTXPrinter encapsulates the printer configuration and printing process.


TTXPrinter - Methods

Contents - TTXPrinter - Properties

Print
Printing function.

Delphi declaration
procedure Print(Strings: TStrings);
C++ declaration
void __fastcall Print(Classes::TStrings *Strings)

Description
Call Print method to Print strings in Strings parameter.

When used together with TTXReport, there is no need to call TTXPrinter's Print method directly, use TTXReport's Print method instead.

Setup
Starts setup dialog.

Delphi declaration
function Setup: Boolean;
C++ declaration
bool __fastcall Setup(void)

Description
Call Setup method at runtime to display printers setup dialog and change the setup data. Right-click on the TTXPrinter component to display setup dialog at design-time.


TTXPrinter - Properties

Contents - TTXPrinter - Methods

ColsPerPage
Columns per page.

Delphi declaration
property ColsPerPage: Integer read FColsPerPage write SetColsPerPage;
C++ declaration
__property int ColsPerPage={ read=FColsPerPage, write=SetColsPerPage, nodefault }

Description
Number of characters on printer page in horizontal direction.

DirToPort
Directly to port.

Delphi declaration
property DirToPort: Boolean read FDirToPort write SetDirToPort;
C++ declaration
__property bool DirToPort={ read=FDirToPort, write=SetDirToPort, nodefault }

Description
Set to true to send data directly to communication port, and false to print via Windows print spooler.

EmptyPageAfter
Empty page after report.

Delphi declaration
property EmptyPageAfter: Boolean read FEmptyPageAfter write FEmptyPageAfter;
C++ declaration
__property bool EmptyPageAfter={ read=FEmptyPageAfter, write=FEmptyPageAfter, nodefault }

Description
Set EmptyPageAfter to true to add empty page after report.

LinesAfter
Empty lines after report.

Delphi declaration
property LinesAfter: Integer read FLinesAfter write SetLinesAfter;
C++ declaration
__property int LinesAfter={ read=FLinesAfter, write=SetLinesAfter, nodefault }

Description
Use LinesAfter to add empty lines after report.

LinesPerPage
Lines per page.

Delphi declaration
property LinesPerPage: Integer read FLinesPerPage write SetLinesPerPage;
C++ declaration
__property int LinesPerPage={ read=FLinesPerPage, write=SetLinesPerPage, nodefault }

Description
Number of lines on one page.

Set LinesPerPage to 0 to print on continous paper without page breaks.

PortName
Port name.

Delphi declaration
property PortName: String read GetPortName write SetPortName;
C++ declaration
__property System::AnsiString PortName={ read=GetPortName, write=SetPortName, nodefault }

Description
Name of the communication port, such as COM1 or LPT1, used by TTXPrinter when printing without Windows print spooler.

PrinterName
Printer name.

Delphi declaration
property PrinterName: String read GetPrinterName write SetPrinterName;
C++ declaration
__property System::AnsiString PrinterName={ read=GetPrinterName, write=SetPrinterName, nodefault }

Description
Name of the Windows printer used by the TTXPrinter component when printing via Windows print spooler.

TransLiterate

Delphi declaration
property TransLiterate: Boolean read FTransLiterate write FTransLiterate;
C++ declaration
__property bool TransLiterate={ read=FTransLiterate, write=FTransLiterate, nodefault }

Description
Set TransLiterate to true to perform AnsiToOEM conversion.