When I use setPrintArea() it sets correctly, and I can read it via
getPrintArea(). No problems there. However, when I do a
workbook.write(), the resulting file doesn't have a print area set in
it.

Am I doing something wrong?

                String retrievedPrintArea = wb.getPrintArea(0);
                if (retrievedPrintArea != null)
                        System.out.println("Print Area: " + 
retrievedPrintArea);  // prints
"Print Area: 'Invoices'!$A$1:$L$1089

                ...
                        
                        java.io.FileOutputStream out = new 
java.io.FileOutputStream(fileTmp);
                        wb.write(out);
                        out.flush();
                        out.close();

And the output doesn't have a print area set.

Thanks in advance for any help,
-- 
Ethan Baldridge <[email protected]>
Superior Document Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to