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
880
Chanding pageorientation using ultragrid.PrintPreview
posted

I love the simplicity of printing the content of a UltraGrid using .PrintPreview method.

 

I would like to know how I can change the page orientation from the default Portrait to Landscape.


venki

Parents
  • 53790
    posted

    Hello Venki,

    One possible approach could be if you are using:

    ultraPrintPreviewDialog1.Document = ultraGridPrintDocument1;

    ultraPrintPreviewDialog1.Document.DefaultPageSettings.Landscape =true;

    ultraPrintPreviewDialog1.ShowDialog();

    Please take a look at atatched sample for more details. Let me know if you have any questions.

    Regards

    UltraGirdPrintPreviewDialog.zip
Reply Children
No Data