Hi,
I am using Wingrid for displaying the Data.
i am using the wingrid print preview option for showing the data in the Print screen dialog box.
When i click the print button, i am getting these below problems
1. The print preview dialog box appears with the minimum size. i want to maximize the print perview screen
2. i have around 12 columns. but it is not dispayed in a single page.some of the columns is showing the next page. I want to dispay everything in the single page.
Kindly provide the sample code to resolve this issue.
private void ultraGrid1_InitializePrintPreview(object sender, CancelablePrintPreviewEventArgs e) { e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1; e.PrintPreviewSettings.DialogLeft = 0; e.PrintPreviewSettings.DialogTop = 0; e.PrintPreviewSettings.DialogWidth = Screen.PrimaryScreen.WorkingArea.Width; e.PrintPreviewSettings.DialogHeight = Screen.PrimaryScreen.WorkingArea.Height; }