I’m trying to create a zoom factor and a “fit the grid in x pages” when printing and print preview. The sample 3291 found in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=10310 does exactly what I want to do but I can’t seem the find a suitable place to put the code so that it is only executer when the grid is being printed or print previewed.
I want to replicate the “Adjust to” and “Fit to” option in the Page Setup of Excel.
I’m using the grid version 18.104.22.168.
ADAdministrator Syncfusion Team July 5, 2005 02:00 PM
You can try handling these 3 events.
If you are not printing (found out by testing grid.PrintingMode), just return without doing anything. If you are printing, then in QueryCellInfo, try setting e.Style.Font.Size *= up. In the other two events, set e.Size to the zoomed value and also set e.Handled = true. You may have to set a flag to avoid some recursive calls in these events.
SSStephane SansCartierJuly 5, 2005 02:43 PM
Exactly what I needed, thank!
LKLeow Kah ManJuly 30, 2006 09:49 PM
I would like to request for Zoom feature to be present in GridControl.
This would be really helpful instead of having the users to manually code the zoom feature.
ADAdministrator Syncfusion Team July 31, 2006 12:20 AM
If we have enough requests, we will have this as a feature request and get it in the upcoming releases.