FlexSheet for WPF | ComponentOne
Working with C1FlexSheet / Printing Data / Print Preview
In This Topic
    Print Preview
    In This Topic

    C1FlexSheet uses PrintPreview method to print the data in a worksheet. The parameters of this method allows you to select the document name, scale mode, margin, and maximum number of pages. The code below uses the PrintPreview method to provide the preview before printing so that you can view the layout and then print the data:

    Dim scaleMode__1 = ScaleMode.PageWidth
    flex.PrintPreview("C1FlexSheet", scaleMode__1, New Thickness(96), Integer.MaxValue)
    
    var scaleMode = ScaleMode.PageWidth;
    flex.PrintPreview("C1FlexSheet", scaleMode, new Thickness(96), int.MaxValue);