[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintManager

C1PrintManager Class

Provides printing services.

Inheritance
C1PrintManager
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
public class C1PrintManager

Constructors

Name Description
C1PrintManager()

Initializes a new instance of the C1PrintManager class.

Properties

Name Description
Document

Gets or sets the document that to print. If the assigned value is an unsupported object, an exception will be thrown. Use IsSupportedDocument(object) to verify that the object can be printed.

PrintOptions

Gets or sets the C1PrintOptions object specifying the printing options.

PrinterName

Gets the printer name.

Range

Gets or sets the OutputRange object specifying the pages to print.

Methods

Name Description
IsSupportedDocument(object)

Tests whether an object can by printed by this print manager. If this method returns false for an object, an attempt to assign that object to Document will cause an exception. Currently supported types include:

Print(PrinterSettings)

Prints the Document with the specified printer settings.

Print(PrinterSettings, PageSettings)

Prints the Document with the specified printer settings.

Events

Name Description
AdjustPrintPage

Fired from within the PrintPage event handler of the current print manager, prior to actually printing the page. Allows to adjust the hard margins of the printer (e.g. to compensate for a buggy printer driver, see PrintableArea), or to print the current page in user code (see Handled). See also PrintAsBitmap.

Error

Occurs when an external exception is thrown (e.g. while printing).

LongOperation

Occurs periodically when a long operation is in progress. Can be used to provide progress indication and/or the ability for the user to cancel printing.

QueryPageSettings

Fired from within the QueryPageSettings event handler of the current print manager. Allows to change page settings (e.g. changing PaperSize.)