Performs print job with the text of the Syntax Memo.
TecSyntPrinter = class(TecCustomPrinter);
ecPrint
Use TecSyntPrinter to print text from the syntax memo specified in the SyntMemo property. Set Options to customize printing (highlighting, line numbers, word wrapping).
Before print you have to call UpdatePages method.
Use Print and PrintPages methods to perform print job.
Topic |
Description |
The methods of the TecCustomPrinter class are listed here. | |
The properties of the TecCustomPrinter class are listed here. | |
The events of the TecCustomPrinter class are listed here. |
Topic |
Description |
The methods of the TecSyntPrinter class are listed here. | |
The properties of the TecSyntPrinter class are listed here. | |
The events of the TecSyntPrinter class are listed here. |
|
Method |
|
protected |
|
virtual |
|
abstract |
|
Property |
|
read only |
|
Event |
TecCustomPrinter Methods |
Description |
Is called after each print job has finished printing. | |
Is called before the print job has begun. | |
Recalculates pages for printing. | |
Creates and initializes a TecCustomPrinter instance. | |
Destroys an instance of TecCustomPrinter. | |
DoUpdatePages is a protected virtual abstract method which is called after recalculating number of printed pages. | |
Returns rectangle for document content, i.e. printable area without fields. | |
Returns margins in the printable area in device units. | |
Returns page count. | |
Returns class of the Print Setup dialog. | |
Calls for Page Setup dialog. | |
Prints all pages. | |
Prints specified field. | |
Prints page contents without footer and header. | |
Prints specified pages. | |
Prints single page to the Canvas. | |
Recalculates pages for printing. | |
Replaces fields in footers and headers with corresponding strings. | |
Calculates number of pages for printing |
TecCustomPrinter Properties |
Description |
Defines color mode of the printer. | |
Specifies number of copies to be printed. | |
Specifies a list of fields used in footers and headers. | |
| |
Specifies font of the footer text. | |
Specifies font of the header text. | |
Specifies text of the footer. | |
Specifies text of the header. | |
The distance from the bottom edge of the physical page to the bottom edge of the printed rectangle, in units, specified by Units property. | |
The distance from the left edge of the physical page to the left edge of the printed rectangle, in units, specified by Units property. | |
The distance from the right edge of the physical page to the right edge of the printed rectangle, in units, specified by Units property. | |
The distance from the top edge of the physical page to the top edge of the printed rectangle, in units, specified by Units property. | |
Determines whether the print job prints vertically or horizontally on a page. | |
Number of the current printed page. | |
Number of pages. | |
Printer parameters. If there are no printer available default set of parameters is used. | |
Determines the text that is listed in the Print Manager and on network header pages. | |
Specifies units used as measure for margins. |
TecSyntPrinter Class |
Description |
Defines number of the first printed page. | |
Defines font of line numbers. | |
Defines position of line numbers. | |
Specifies print options. | |
Indicates position of the last line after printing a page. | |
Defines end position of the printed area. | |
Defines whether only selected text is printed. | |
Defines start position of the printed area. | |
Linked syntax memo, which text has to be printed. |
Copyright (c) 2004-2011. All rights reserved.
|
What do you think about this topic? Send feedback!
|