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
600
Wingrid Excel Eport Orientation Landscape
posted

Hi,

how can I set Orientation to Landscape when I use ExcelExport of Wingrid?

Thanks

Hansjörg

  • 469350
    Verified Answer
    Offline posted

    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;
            }