PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / Generate Method / Generate(RefreshModeEnum) Method
A C1.C1Preview.RefreshModeEnum value indicating what data should be refreshed during generation.

In This Topic
    Generate(RefreshModeEnum) Method
    In This Topic
    Generates the current document. Depending on the specified refresh mode, may update data-bound and calculated values.
    Syntax
    'Declaration
     
    Public Overloads Function Generate( _
       ByVal refreshMode As RefreshModeEnum _
    ) As Boolean
    public bool Generate( 
       RefreshModeEnum refreshMode
    )

    Parameters

    refreshMode
    A C1.C1Preview.RefreshModeEnum value indicating what data should be refreshed during generation.

    Return Value

    true if no warnings occurred during document generation, false if there were warnings (in that case, the C1.C1Preview.C1PrintDocument.Warnings property on the current document contains the warnings that were issued).
    See Also