TX Text Control ActiveX

Printing and Print Preview

Topic

Printing a TXTextControl document goes through the system printing dialog or straight to a device. The members below print a whole document, a part of it or a single page, set the printer device context and set colors, offset and zoom for the printout.

Properties

MemberDescription
TXTextControl.CurrentPagesReturns the number of pages contained in the current document.
TXTextControl.PrintColorsSpecifies whether text colors are printed as colors or in black.
TXTextControl.PrintDeviceSets the printer device context for TXTextControl's built-in printing function.
TXTextControl.PrintOffsetDetermines whether TXTextControl starts printing exactly at the top left corner of the page, or at the printer's physical printing offset.
TXTextControl.PrintZoomSpecifies a zoom factor for printing.

Methods

MemberDescription
TXTextControl.PrintDialogOpens the system printing dialog and prints a TXTextControl document as specified through the dialog.
TXTextControl.PrintDocPrints a TXTextControl document or a part of a TXTextControl document on the default printer.
TXTextControl.PrintPagePrints a page of text on the default printer.