ComponentOne ReportViewer for ASP.NET Web Forms
C1.C1Report.4 Assembly / C1.C1Preview Namespace / Utils Class / AsC1PrintDocument Method
A document to test/convert.

In This Topic
    AsC1PrintDocument Method
    In This Topic
    Gets the C1PrintDocument representing the passed object, If the passed document is a C1PrintDocument, returns that object. Otherwise, if the passed document is a C1.C1Report.C1Report, returns that report's C1.C1Report.C1Report.C1Document property. Otherwise, returns null.
    Syntax
    'Declaration
     
    Public Shared Function AsC1PrintDocument( _
       ByVal o As System.Object _
    ) As C1PrintDocument
    public static C1PrintDocument AsC1PrintDocument( 
       System.object o
    )

    Parameters

    o
    A document to test/convert.

    Return Value

    C1PrintDocument representing the passed object, or null.
    See Also