We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Returns null? Worksheet.SheetToImage Method ()


Can you explain when/why Worksheet.SheetToImage() would ever return null?


Hi Albert,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

There are some scenarios in which Sheet2Image may return null. Like,

  1. When there is no data in the worksheet.
  2. When worksheet is hidden i.e. Worksheet.IsVisible = false;
  3. If Type of Worksheet is SheetType.Chart and there is no chart in the worksheet.

Thank You & Best Regards,