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 Girish,
I am not saying that you need to use a versioned assembly. That is, you do not need to use Infragsitics3.excel{some version}.dll. You can use the dll without the version number it in.
You just need to make sure you use the versionless assembly with the same name as the one you were already using. But make sure you use the one that is installed with the service release and not the original one.
Hi Mike,
With the error that I am getting and your reply to my post i understand that I have to
I am sorry if I have misinterpreted anything. I have got the latest release. name of the setup file is ""NetAdvantage_WinForms_20103.2094_SR.msp". I have installed it. Now in the installation folder In "Bin - Signed" folder I found a zip file "20103_WinForms_CLR2x_Signed.zip"
Does that means that I did not have correct setup / release? Does that mean that assemblies are build in CLR2?
As per your reply I need assemblies build in CLR3. If this is not correct release that i have then in correct release do I get versionless assemblies build in CLR3 or do I have to use infragistic3.excel{some version}.dll assemblies?
Please answer my confusions. I am sorry if I have asked oyu lot of stuff in one go.
Thanks & Regards,Girish Nehte
Hi,
This is a known bug in the Versionless assembly. The assembly was built using CLR2 instead of CLR3, and so it cannot access any built-in packaging support in the DotNet Framework.
You will need to get the latest service release.
How to get the latest service release - Infragistics Community
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.
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