Using the code below, I should be able to create a BMP file from an Excel worksheet, but in fact it only works for the JPEG case. All other file formats fail. I am using aspose-cells-7.0.3-java.
void test() throws Exception {
m_workbook = new Workbook("C:\\Users\\Bruce\\Desktop\\PFI_test_cases.xlsx");
ImageOrPrintOptions options = new ImageOrPrintOptions();
options.setHorizontalResolution(118);
options.setVerticalResolution(112);
options.setImageFormat(ImageFormat.getBmp());
options.setOnePagePerSheet(true);
options.setImageFitToPage(true);
Worksheet worksheet = m_workbook.getWorksheets().get(0);
SheetRender render = new SheetRender(worksheet, options);
FileOutputStream outputStream = new FileOutputStream("C:\\Users\\Bruce\\Desktop\\Test.bmp");
render.toImage(0, outputStream);
}