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
Hi Mike,
I am using VS2008 and dot net framework 3.5 and I am using dll having following dlls
Name: Infragistics.Excel
Runtime Version: v2.0.50727
Version: 10.3.20103.1000
When I am trying to export to excel 2007 I am also getting the same error. The code I am uising to Export is
ultraGridExcelExporter.Export(
.Excel2007);
Exception: 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
Please let me know what is going on wrong here.
Thanks & Regards,Girish Nehte
TO Mike:
I use dotnetframewrod2.0, i am optimizing a very old program-system,so cant update the version.
I get a way to solve it from your words.
thank you very much. :D