I'm try to export a webdatagrid using the excel exporter and get an error on this line:
WebExcelExporter1.Export(webDataGrid1)
Error Message: Object reference not set to an instance of an object.
Stack Trace: at Infragistics.Web.UI.GridControls.BaseExporter.LoadLinkedStyles(RunBot runBot)
at Infragistics.Web.UI.GridControls.WebExcelExporter.InitStyleSheet(RunBot runBot)
at Infragistics.Web.UI.GridControls.WebExcelExporter.Export(WebDataGrid grid, Worksheet worksheet, Int32 rowOffset, Int32 columnOffset)
at Infragistics.Web.UI.GridControls.WebExcelExporter.Export(WebDataGrid grid, Worksheet worksheet)
at Infragistics.Web.UI.GridControls.WebExcelExporter.Export(WebDataGrid grid, Workbook workbook)
at Infragistics.Web.UI.GridControls.WebExcelExporter.Export(WebDataGrid grid)
Hello,
Refer to the below forum threads that will help you to resolve the issue you described:
<http://forums.infragistics.com/forums/t/55715.aspx>
<http://forums.infragistics.com/forums/t/66288.aspx>
If this issue is still present provide me with the mark up of the page so I may look in to this.
I hope this helps.
I am just following up to see if you need any further assistance with this matter.
I was updating a very old page from using an UltraWebGrid to the WebDataGrid.
Making some changes to the aspx source fixed the problem .
Changed this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
To this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
And this: <head>
To this: <head runat="server">