The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
JSJeba S Syncfusion Team November 26, 2007 12:07 PM UTC
Hi Me,
Thank you for your interest in Syncfusion Products.
The GridPrintDocument class contains the DefaultPageSettings.Margins property. You can use this property to control where the grid is printed. Below is the code snippets: GridPrintDocument gp = new GridPrintDocument(this.gridControl1, true); gp.DefaultPageSettings.Margins.Top = 100; gp.DefaultPageSettings.Margins.Bottom =100; gp.DefaultPageSettings.Margins.Left = 100; gp.DefaultPageSettings.Margins.Right = 100;
The grid will try to center itself in the area allocated for it. For example if the page width is 850, and you have margins of 100 on each side, this leaves 650 width for the grid. If the whole number of columns only occupy 600, that leaves 50 extra pixels. The default behavior is to split these up, 25 on each side.
Kindly let us know if you need any further assistance.