I am fairly new to WPF and I am trying to print preview a grid having more than 10 columns . All the columns do not fit on a page for printing. So I would like to continue printing rest of the columns on page 2 . Or if anyother approach , so that the user can see the data for all the columns of the grid.. Here is the sample code. Please let me know.
public static void PrintPreview(Telerik.Windows.Controls.RadGridView grid)
if (grid != null)
var dialog = new PrintDialog();
var capabilities = dialog.PrintQueue.GetPrintCapabilities(dialog.PrintTicket);
var pageSize = new Size(dialog.PrintableAreaWidth, dialog.PrintableAreaHeight);
var extentSize = new Size(capabilities.PageImageableArea.ExtentWidth, capabilities.PageImageableArea.ExtentHeight);
In your PaginateGridInToFixedDocument method, you check if a grid is too big in height and create a new page if it is. You just need to do the same thing for the width of the print-friendly RadGridView.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items
Thanks for your reply. But somehow , the width of the grid is not getting autosized to display all the columns. The width of the grid is remaining fixed even after auto fitting the columns. Can you please give me some pointers.