Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When the Excel file is empty and the user saves it to PDF using Aspose.Cells, it renders a blank page in output PDF. Sometimes, this default behavior is undesirable. Aspose.Cells provides the PdfSaveOptions.OutputBlankPageWhenNothingToPrint property to deal with this issue. If you will set it as false, then CellsException will occur whenever there is nothing to print in the output PDF.
The following sample code creates an empty workbook and then saves it as output PDF after setting the PdfSaveOptions.OutputBlankPageWhenNothingToPrint property as false. Since there is nothing to print in the output PDF, the CellsException occurs as shown below.
Exception in thread "main" com.aspose.cells.CellsException: There is nothing to output/print.
at com.aspose.cells.zcab.a(Unknown Source)
at com.aspose.cells.zcab.a(Unknown Source)
at com.aspose.cells.zcab.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.