TX Text Control .NET for Windows Forms Documentation

ServerTextControl.Print Method

Overloaded. Prints a Text Control document or a part of a document. The first implemention uses the printer settings of the specified PrintDocument for printing the document. The second implementaition prints a single page. This method can be called from the PrintPage event handler.

Syntax

[C#] public void Print(PrintDocument printDocument); public void Print(int page, PrintPageEventArgs ppe);
[Visual Basic] Public Sub Print(ByVal printDocument As PrintDocument) Public Sub Print(ByVal page As Integer, ByVal ppe As PrintPageEventArgs)
MemberDescription
printDocument

Specifies an instance of the PrintDocument class. The following settings of the PrintDocument object are used:


SettingMeaning
DocumentNameSpecifies the document's name.
PrintControllerSpecifies the document's print controller.
PrinterSettings.FromPageThe first page to print.
PrinterSettings.ToPageThe last page to print.
PrinterSettings.CopiesThe number of copies to print.
PrinterSettings.CollateSpecifies how the printed pages are sorted.
PrinterSettings.PrinterNameSpecifies the name of the printer.
PrinterSettings.PrintToFileSpecifies whether the printed pages are saved in a file.
PrinterSettings.PrintRangeSpecifies the range of pages to print.
DefaultPageSettings.ColorSpecifies whether the printed pages are printed colored.
page

Specifies a page number to print.

ppe

Specifies the event arguments of the print document's PrintPage event.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now