Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
printing problem
posted

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.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted


            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;           
            }

Children
No Data