Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 917E4C287 for ; Fri, 18 May 2012 13:05:52 +0000 (UTC) Received: (qmail 56280 invoked by uid 500); 18 May 2012 13:05:51 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 56251 invoked by uid 500); 18 May 2012 13:05:51 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 56231 invoked by uid 99); 18 May 2012 13:05:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 13:05:51 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of jancy.thangarasu@aspiresys.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 13:05:44 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SVMrz-0002xW-HZ for user@poi.apache.org; Fri, 18 May 2012 06:05:23 -0700 Date: Fri, 18 May 2012 06:05:23 -0700 (PDT) From: "jancy.thangarasu" To: user@poi.apache.org Message-ID: <1337346323532-5709801.post@n5.nabble.com> Subject: How to add section in HWPFDocument MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, How to add section to the word document? I come across the method addSection() in documentSummaryInformation class but am not getting the actual usage of it!! Pls share if anybody have idea on this method[addsection()] usage and moreover i would like to know like using this method will move to new page.Correct me if i am wrong. DocumentSummaryInformation documentSummaryInformation = document.getDocumentSummaryInformation(); documentSummaryInformation.addSection(new Section(),range); //What value i should pass for two parmaters I have given a try to the above couple of lines but don't know to proceed further ,What value i suppose to pass?? even passing will lead to next page..?? Thanks in advance.. Jancy -- View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-add-section-in-HWPFDocument-tp5709801.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org