Set Default Font while rendering spreadsheet to images

Set Default Font while rendering spreadsheet to images

The following sample code creates a workbook, adds some text in cell A4 of the first worksheet, and sets its font to invalid or non-existent font. Then, it takes two images of the worksheet. The first image is taken by setting the ImageOrPrintOptions.DefaultFont property to Courier New and the second image is taken by setting the ImageOrPrintOptions.DefaultFont property to Times New Roman.

This is the output image after setting the ImageOrPrintOptions.DefaultFont property to Courier New.

todo:image_alt_text

This is the output image after setting the ImageOrPrintOptions.DefaultFont property to Times New Roman.

todo:image_alt_text

Sample Code