[]
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:
vbnet
Dim scaleMode__1 = ScaleMode.PageWidth
flex.PrintPreview("C1FlexSheet", scaleMode__1, New Thickness(96), Integer.MaxValue)
csharp
var scaleMode = ScaleMode.PageWidth;
flex.PrintPreview("C1FlexSheet", scaleMode, new Thickness(96), int.MaxValue);