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.
I want to print custom header and footer for my printouts. So, I derived ReportPrintDocument from the GridPrintDocument base class. I am having trouble controlling margins. It looks like the GridPrintDocument is calculating the number of rows that be fit into a page in the OnBeginPrint() method.
In OnBeginPrint(), I am shrinking the margins, so that my header+footer can be printed. In OnPrintPage(), I am painting my header/footer and letting the grid paint in the middle. Here is where I am having a problem. I want to print the header only on first page. My first page is coming ok. But from page #2, for some reason the grid is not going till the bottom.
GRGolda Rebecal Syncfusion Team August 15, 2007 11:53 AM UTC
Hi Kesav,
We are trying to achieve this by scrolling the grid and drawing the bitmap image of a particular range of rows in each page so that the image would fit the page size.