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
463
Ultra grid
posted

Hi

i am using print and print preview of ultragrid...

grid.Print(grid.DisplayLayout, ultraGridPrintDocument);

but it has 7000 rows. and i want to that it come into muilti page (according to height) but it's width is fit into  in one page.

Thanks

Dilip Natani

 

  • 469350
    Suggested Answer
    Offline posted

    Hi Dilip,

    To fit the grid onto a single page width, use the FitWidthToPages property.


            private void ultraGrid1_InitializePrint(object sender, CancelablePrintEventArgs e)
            {
                e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1;
            }