TX Text Control .NET for Windows Forms Documentation

TextControl.Print Method

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

Syntax

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

Specifies the document's name.

printDocument

Specifies an instance of the PrintDocument class. Text Control uses the following settings of this object:


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