I now gave a problem with my code, which was previously running fine, whereby when it iterates through some Excel workbooks and tries to generates images of them using the Aspose.Cells SheetRender object, it can only generate the first one. The 2nd time it tries, I get an “Input string was not in a correct format” exception.
The code in question is:
Aspose.Cells.Rendering.SheetRender sr = new Aspose.Cells.Rendering.SheetRender(sheet, imgOptions);
Image image = sr.ToImage(0);
If I check sr.PageCount(), it returns ‘1’, so the SheetRender thinks it has an image.
I have tried to re-create this problem in a small test app, but that works fine (both are running in VS2008 with Aspose.Cells version 7.4.2.5).
Can you please tell me what could be causing this particular exception to be thrown at this time, so that I can try to track down what could be causing it?
Thanks,
Nigel