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
2060
UltraGridPrintDocument - Default settings
posted

Hi,

I've got a grid that I would like to print or print preview.  The default setting for the orientation is landscape.  I've searched this forum for the answer with mixed results.

I assumed rightly or wrongly that using the following setting would change the orientation to landscape.  When I print preview the document is still in portrait.

Me.UltraGridPrintDocument1.PrinterSettings.DefaultPageSettings.Landscape = True

I then found a post describing capturing the UltraGridPrintDocument1_QueryPageSettings event and using e.PageSettings.Landscape to set it to landscape. 

I managed to get that to work however when you go to page setup from the print preview dialog, although the image is in landscape, the page setup says Portrait.

Could you let me know what I'm doing wrong?

Thanks

Nathan

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Nathan,

    It depends how you are printing. Can you post there code you are using to show the PrintPreview? 

Children