I am working with Aspose Cells to generate image of an
Excel worksheet using Aspose Cell tool. we have licence version of
Aspose Cells, we are using 18.104.22.168 version for Aspose Cells dll, when i am going to generate image from Excel Worksheet it
is giving me Null Bitmap for perticular Excel sheet, it is working fine
with other Excel sheet,
Below is the code regarding this -
AsposeCell.Workbook book = new AsposeCell.Workbook(selectedDocumentPath);
if (sheetNo >= 1 && sheetNo <= book.Worksheets.Count)
AsposeCell.Worksheet sheet = book.Worksheets[sheetNo - 1];
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
imgOptions.OnePagePerSheet = true;
<span style="color:#2b91af;">SheetRender</span> sr = <span style="color:blue;">new</span> <span style="color:#2b91af;">SheetRender</span>(sheet, imgOptions); <b>Bitmap bitmap = sr.ToImage(0);</b>
}here it is giving me Null bitmap, please let me know if any one have solution.
Please find the attached Excel Sheet.
Thanks for your response in advance