TTXPrinterContents - 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.
Contents - TTXPrinter - Properties
Printing function.SetupDelphi 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.
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.
Contents - TTXPrinter - Methods
ColsPerPage
Columns per page.DirToPortDelphi 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.
Directly to port.EmptyPageAfterDelphi 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.
Empty page after report.LinesAfterDelphi 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.
Empty lines after report.LinesPerPageDelphi 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.
Lines per page.PortNameDelphi 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.
Port name.PrinterNameDelphi 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.
Printer name.TransLiterateDelphi 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.
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.