Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 67614 invoked from network); 9 Feb 2010 07:40:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 07:40:55 -0000 Received: (qmail 19905 invoked by uid 500); 9 Feb 2010 07:40:55 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 19852 invoked by uid 500); 9 Feb 2010 07:40:54 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 19842 invoked by uid 99); 9 Feb 2010 07:40:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 07:40:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 07:40:52 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id DABB6234C052; Mon, 8 Feb 2010 23:40:30 -0800 (PST) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 48707] New: Excel: Custom Paper size (height/Width) X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: tariq.zubairy@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 8 Feb 2010 23:40:30 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=48707 Summary: Excel: Custom Paper size (height/Width) Product: POI Version: unspecified Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: HSSF AssignedTo: dev@poi.apache.org ReportedBy: tariq.zubairy@gmail.com HSSFPrintSetup/XSSFPrintSetup setPaperSize method does not allow to set custom width and custom height of paper used for printing ... Here is my scenario... HSSFSheet hssfSheet = hssfWorkBook.getSheetAt(0); HSSFPrintSetup hssfPS = hssfSheet.getPrintSetup(); hssfPS.setFitWidth((short)1); hssfPS.setFitHeight((short)999); hssfSheet.setFitToPage(true); here I want to set the custom paper size, as setPaperSize only gives few option for paper size so it is not feasible due to that limitation. I want to set the custom paper size according to the maximum physical number of cells in excel sheet so that the data in my sheet should not shrink when I made its actual printout or PDF.... (i.e. set width to 17 inches when max physical columns in sheet are more than 10 and set width of page to 20 inches when max physical columns are greater than 15 etc...) -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org