PrintDocument for WinForms | ComponentOne
PrintPreview Library / Preview Action Items
In This Topic
    Preview Action Items
    In This Topic

    The PrintPreview Control provides the option to set flags indicating which all tools should be available in the preview. For this purpose, the C1PrintPreviewControl class provides the AvailablePreviewActions property.

    So, when you click the AvailablePreviewActions property, the following window opens from the Property window.

    Snapshot of Properties window.

    You can check or uncheck the preview actions as per your choice using this property. You can also set the flags for tools which you want to preview programmatically:

    C#
    Copy Code
    c1PrintPreviewControl1.AvailablePreviewActions = C1.Win.C1Preview.C1PreviewActionFlags.File;
    

    This is how the output looks like:

    Snapshot of output