I'm trying to port some code that was working correctly using Excel.
Set License = CreateObject("Aspose.Cells.License")
License.SetLicense ("Aspose.Cells.lic")
Set Workbook = CreateObject("Aspose.Cells.Workbook")
Workbook.Open_5 (sWorkbookFilename)
Workbook.Save_4 sOutputFilename, 1 ' CSV. Also tried 5 for Default
I get an Invalid Argument failure on the Save_4 call.
Hi,
Which version of Aspose.Cells you are using?
And please make sure that you have uninstalled all the previous instances of older Aspose.Cells version if you have. And make sure that the newer Aspose.Cells is properly registered on your machine, you may utilize regasm.exe utility for it.
For reference, please check:
http://www.aspose.com/wiki/default.aspx/Aspose.Cells/AccessingComponentFromCOMClients.html
And could you try the attached latest hotfix version.
Thank you.
We are licensed up to Aspose.Cells for .Net 4.1.2.0 Hot Fix (full installer) so that's what I'm using.
I had a newer version installed before I realized it was too new for our license. I uninstalled it and installed the above version.
I have registered the assembly. Failure to do so wouldn't even let me create the object. I open and dig through workbooks, but I can't save one.
Any other suggestions? I hate being stuck dead in the water. :(
Hi,
We will check and get back to you soon.
Thank you.
I didn’t notice that COM interpret overloaded function according to the sequence in the source code, not as ildasm shows. So please try Save_1 to Save_7 functions.
I experimented with the various overloaded methods and finally got this to produce a tab-delimitted file:
Workbook.Save_5 sFilename, FileFormatType_TabDelimited ' int const = 7
Thank you for the help.