Laurence,
one of our developers has a problem with AutoFitRows. The attached sample throws an exception on the call to AutoFitRows. This is using Aspose.Cells 4.1.2.6 and .NET 1.1
Please advise
Thanks in advance
Kai
Hi Kai,
Could you please try the version downloading @: https://forum.aspose.com/t/102815
Thank you.
Amjad,
no, unfortunately this version does not solve the issue.
Kai
Hi Kai,
Well, I tried your template file "Template.xls" and it works fine without generating any exception related AutoFitRows() and the output file (attached) is ok.
I use the simple code:
Workbook book = new Workbook ();
book.Open("D:\\test\\Template.xls");
book.Worksheets[0].AutoFitRows();
book.Save("D:\\test\\Template1.xls" );
Thank you.
Amjad,
no matter what I do (load from stream or file, use 4.1.2.6 or 4.1.2.18) I always get the following exception:
An unhandled exception of type ‘System.ArgumentException’ occurred in system.drawing.dll
Additional information: Invalid parameter used.
Thanks
Kai
Hi Kai,
Well, The problem might relate to .Net (platform assemblies) and not Aspose.Cells. Because, I run your project without any difficulty and the output file is fine and open into the browser without generating any exception. Could you please try it on some other systems.
Thank you.
Amjad,
yes, of course this is happening in a system assembly, namely Drawing, but from the Call Stack I see that it is called from Aspose.Cells and according to the exception with invalid arguments. Yes, we have tried this on other systems and it fails
So please advise what else we might look into or provide you with to track this down
Thanks
Kai
Hi Kai,
Acutally I found and fixed this problem. But I have problems to post it here. Could you please post your email address here? I will send it to you by email.