Hi ,I come from china.little pg use netadvantage sdk in china,so i need your help.
my english is very poor,so need your forgiveness.
when i save excel2007 file using Workbook. Save(string fileName) in netadvantage10.2;
there is a err:
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
i dont konw how to use the interface IPackageFactory .
ps: code is more helpful than words;
thanks.
Hi,
What version of Visual Studio are you using?
If you are using CLR3 or higher, then you do not need to create your own PackageFactory. All you have to do is change your project references to the correct version of Infragistics Excel and UltraGridExcelExporter assemblies.
If you are using an older version, then you can still export to Excel2003 format without a PackageFactory.
If not, then you would need to either write or purchase a third-part compression library and write your own IPackageFactory class to handle compressing and de-compressing the Excel files.There's no way I can provide you with any sample code for this, because it relies on third-party code.
Hello! plase can you help me?
i have infragistic 2006 and i need to export to excel 2007, more that 65000 rows! but i cant!!
what do yo recommend?? please help me!!
Gladys
That version of the Excel library did not support saving to Excel 2007 formats. Your only options are to upgrade to a newer version, export to multiple worksheets instead of just one (if that fits your needs), or use another code library, such as Excel interop.