Gets the C1PrintDocument representing the passed object, If the passed document is a C1PrintDocument, returns that object. Otherwise, if the passed document is a C1Report, returns that report's C1Document property. Otherwise, returns null.

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

Syntax

C#
public static C1PrintDocument AsC1PrintDocument(
	Object o
)
Visual Basic
Public Shared Function AsC1PrintDocument ( _
	o As Object _
) As C1PrintDocument

Parameters

o
Type: System..::..Object
A document to test/convert.

Return Value

C1PrintDocument representing the passed object, or null.

See Also