你好,我在使用 【aspose-cells-23.3】时遇到如下两个问题,麻烦帮忙看一下
附件exl见压缩包
test.7z (39.3 KB)
导出相关代码如下:
Workbook book = new Workbook(“C:\Users\56850\Desktop\test.xlsx”);
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.setImageType(ImageType.SVG);
imgOptions.setOnePagePerSheet(true);
imgOptions.setOnlyArea(true);
Worksheet sheet = book.getWorksheets().get(0);
sheet.getPageSetup().setPrintArea("B2:AF157");
SheetRender sheetRender = new SheetRender(sheet, imgOptions);
sheetRender.toImage(0, "C:\\Users\\56850\\Desktop\\22222\\"+new Date().getTime() +".svg");