Hi:
I am using PrintPreview to print the contents of a Wingrid to a report. I love the simplicity of the control.
I see that it defaults to portrait. How can I change the default layout to Landscape?
venki
Awesome! Thanks for your quick response and your resolution.
Venki
Hello Venki,
Thank you for posting in our forum.
You may handle InitializePrintPreview event. In this event you may set PrintPreviewSettings property of the event argument. In order to set the landscape page you may use code like this:
private void ultraGrid1_InitializePrintPreview(object sender, CancelablePrintPreviewEventArgs e)
{
e.PrintDocument.DefaultPageSettings.Landscape = true;
}
More about InitializePrintPreview event you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGrid~InitializePrintPreview_EV.html.
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.