2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Print optionsBy default, the columns get split depending upon the size of the data. If you want to display all the column values in the same page, you can make use of the property ScaleColumnsToFitPage. This property gets or sets a value indicating whether the Grid's column should be scaled to fit the print page. C# //Create the Grid as printing document GridPrintDocumentAdv gpd = new GridPrintDocumentAdv(this.gridGroupingControl1.TableControl); PrintDialog pd = new PrintDialog(); //Scale all columns to fit within a page gpd.ScaleColumnsToFitPage = true; pd.Document = gpd; //Print the contents of the Grid gpd.Print(); VB 'Create the Grid as printing document Dim gpd As New GridPrintDocumentAdv(Me.gridGroupingControl1.TableControl) Dim pd As New PrintDialog() 'Scale all columns to fit within a page gpd.ScaleColumnsToFitPage = True pd.Document = gpd 'Print the contents of the Grid gpd.Print()
Screenshot Samples: C#: ScaleToFit_CS VB: ScaleToFit_VB Reference link: https://help.syncfusion.com/windowsforms/classic/gridgroupingcontrol/printing#print-options |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.