1. 程式人生 > >e685. 顯示頁面格式窗口

e685. 顯示頁面格式窗口

ble ESS nbsp border fff inter ces value align

The page format dialog allows the user to change the default page format values such as the orientation and paper size.

    PrinterJob pjob = PrinterJob.getPrinterJob();
    
    // Get and change default page format settings if necessary.
    PageFormat pf = pjob.defaultPage();
    pf.setOrientation(PageFormat.LANDSCAPE);
    
    // Show page format dialog with page format settings.
    pf = pjob.pageDialog(pf);

Related Examples

e685. 顯示頁面格式窗口