Prints the current document with specified printer settings, not showing the print progress dialog.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public void Print(
	PrinterSettings printerSettings
)
Visual Basic
Public Sub Print ( _
	printerSettings As PrinterSettings _
)

Parameters

printerSettings
Type: System.Drawing.Printing..::..PrinterSettings
The printer settings to use.

Examples

The following code uses the Print(PrinterSettings) method to print the document:

Copy CodeVisual Basic
Dim pm as new C1.C1Preview.C1PrintManager()
pm.Document = doc
Dim ps as new Printing.PrinterSettings()
pm.Print(ps)
Copy CodeC#
C1PrintManager pm = new C1.C1Preview.C1PrintManager();
pm.Document = doc;
PrinterSettings ps = new Printing.PrinterSettings();
pm.Print(ps);

See Also