Class ExcelPrintSetupFactory


  • public final class ExcelPrintSetupFactory
    extends Object
    Performs all steps to setup the printer page of an excel sheet.

    This list is based on the specifications found in the OpenOffice documentation. http://sc.openoffice.org/excelfileformat.pdf.

    Author:
    user
    • Method Detail

      • performPageSetup

        public static void performPageSetup​(org.apache.poi.ss.usermodel.PrintSetup printSetup,
                                            PhysicalPageBox pageformat,
                                            String paperdef,
                                            String paperOrientation)
        Performs the page setup and searches a matching page format for the report.
        Parameters:
        printSetup - the print setup object of the current sheet.
        pageformat - the pageformat defined for the report.
        paperdef - the excel paper size property (may be null).
        paperOrientation - the paper orientation, either "Landscape" or "Portrait"