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 am writing my own print library, but i have a little problem when printing a GridControl. I use the DrawGrid() method to draw the grid to my preview window. I can see the grid, but the visual style of the grid is the same as on screen. This is not what I want, I want the print style from the grid. So I discovered that there is a grid.printingmode property that can be turned on or off. When i'm turning it off, I see the grid (same as on the screen), but when I turn it on my grid is gone from the preview/print.
Is there a way to print the grid using the DrawGrid() method?
ADAdministrator Syncfusion Team March 31, 2008 07:50 AM UTC
Hi Tim,
Thank you for your interest in Syncfusion products.
Please refer this browser sample: C:\Program Files\Syncfusion\Essential Studio\6.1.0.34\windows\Grid.Windows\Samples\Printing\PrintToFit
This sample shows you how to print a grid on a single page. It derives a GridPrintDocument class in order to handle the printing of the entire grid on a single page. It does this by drawing the full size grid to a large bitmap and then drawing this bitmap, scaled to fit the output page.