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
75
Export format to Excel
posted

Hello

I'm taking over a project that uses Infragistics.WebUI.UltraWebGrid.ExcelExport.Export(). Question is, how do I keep the Ultragrid formatting when exporting this to Excel?

The line of code for Excel export;

 try
            {

                exportControl.XLSExport.ExportMode = Infragistics.WebUI.UltraWebGrid.ExcelExport.ExportMode.InBrowser;
                exportControl.XLSExport.Export(MyGrid.MainSection);

             }

The grid does have formatting applied and works with PDF export control (Infragistics.WebUI.UltraWebGrid.DocumentExport) but not with Excel.

Should this be handled differently? Any pointer is appreciated. Thank you.

Parents Reply Children
No Data