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
35
packageFactory error while exporting data using Infragistics2.Excel
posted

Hi,

We are using Infragistics2.Excel assembly to export data from Infragistics UltraGrid and all of a sudden, it is throwing below error:

packageFactory cannot be null. When saving to Excel2007 workbook format and using the Infragistics2.Excel assembly, you must provide an IPackageFactory to handle the packaging of data. If you are using the DotNet Framework 3.0 or higher, use the Infragistics3.Excel assembly instead, and the packaging will be handled by the WindowsBase class

My windows application is currently running on .NET Framework 4.5 and using Infragistics2 v9.2. We could not upgrade the Infragistics to 3.0 at this point so please let me know if there are any way to fix this problem:

Code:

this.ultraGridExcelExporter1.Export(this.grdActiveMonitor, saveDialog.FileName);

Thanks,

Murali