Gets the IC1Document representing the passed object, If the passed document is a C1PrintDocument or C1MultiDocument, 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 IC1Document AsC1Document(
	Object o
)
Visual Basic
Public Shared Function AsC1Document ( _
	o As Object _
) As IC1Document

Parameters

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

Return Value

IC1Document representing the passed object, or null.

See Also