Hi,
how can I set Orientation to Landscape when I use ExcelExport of Wingrid?
Thanks
Hansjörg
Hi Hansjörg,
I'm not sure I understand exactly what you are asking. And Excel Worksheet doesn't have an Orientation.
If you mean the printing Orientation of the sheet, then I think you can do something like this:
private void ultraGridExcelExporter1_ExportEnded(object sender, Infragistics.Win.UltraWinGrid.ExcelExport.ExportEndedEventArgs e) { e.CurrentWorksheet.PrintOptions.Orientation = Infragistics.Documents.Excel.Orientation.Landscape; }