Hi,
I can not convert the attached file to image (either get an invalid parameter error or, crash). My code is as follows :
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(@“C:\TEMP\test4\Sample - Superstore Sales (Excel).xls”);
Aspose.Cells.Rendering.ImageOrPrintOptions imgOptions = new Aspose.Cells.Rendering.ImageOrPrintOptions();
imgOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;
imgOptions.OnePagePerSheet = true;
Aspose.Cells.Worksheet sheet = wb.Worksheets[0];
Aspose.Cells.Rendering.SheetRender sr = new Aspose.Cells.Rendering.SheetRender(sheet, imgOptions);
System.Drawing.Bitmap bitmap = sr.ToImage(0);
bitmap.Save(@“C:\TEMP\test4\sonuc.png”, System.Drawing.Imaging.ImageFormat.Png);
Thank you,