Home Forums WinForms controls Xceed Grid for WinForms PrintPreview in landscape Reply To: PrintPreview in landscape

User (Old forums)
Member
Post count: 23064

Here’s how you could do it (code has not been tested):<code>using(PrintPreviewDialog dlg = new PrintPreviewDialog()) {
dlg.Document = doc; // doc = your GridPrintDocument
dlg.ShowDialog(form); // form = your main Form (or null)
}</code>

Imported from legacy forums. Posted by Tommy (had 301 views)