The wpf form is hosted in an elementhost in our winform app and the winform app uses Infragistics2.Excel.v9.2.dll. I have to put the wpf form in the winform project (it means i can not make the wpf form as a dll) . Any idea how to solve this ?
Ethan
If you're just using the Infragistics2.Excel.v9.2 assembly to programatically deal with creating/reading/manipulating an excel workbook then you could just the use the wpf version instead. If you need to have references to both in the same project (e.g. because your assembly uses both the DataPresenter Excel exporting and the wingrid excel exporting) then you could go to the project references and set an alias on the assembly reference. Then any place that you need to interact with the excel classes from the wpf version of the assembly you would prefix with your alias (e.g. wpfExcel::ExcelWorkbook).
Hey Andrew , I tried this way before but it doesn't work with visual studio 2008 if I don't modify the compile parameters locally , however , we use Cruise control and it is no way to convince the source manage guy to change the parameters on the source server .
Thanks anyway .
Hi,
The WPF assembly (Infragistics3.Wpf.Excel.v9.2.dll) you are using requires CLR 3.5 or later version.
Thanks,
Slavi
Hi There,
I am getting below error..
Could not load file or assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral,
or one of its dependencies. The system cannot find the file specified.
Stack Trace: at Infragistics.Excel.PackageFactory.Open(Stream stream, FileMode packageMode)
at Infragistics.Excel.Workbook.SaveXLSXFile(Stream stream, IPackageFactory packageFactory)
at Infragistics.Excel.Workbook.SaveHelper(Stream stream, IPackageFactory packageFactory)
at Infragistics.Excel.Workbook.Save(String fileName, IPackageFactory packageFactory)
at Infragistics.Excel.Workbook.Save(String fileName)
Can you please confirm the .net Framework Required for using the above methods.
Pradeep
What do you mean about changing the compile parameters locally? All I meant was to select the assembly in the project's references, go to the properties window and change the Aliases on that reference (and update any relevant source code to prefix with that alias).