ASF Bugzilla – Attachment 2909 Details for
Bug 12281
[PATCH] Some more Quick Guides Docs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file for xdoc
docs.patch (text/plain), 2.42 KB, created by
Eric Pugh
on 2002-09-04 00:51:49 UTC
(
hide
)
Description:
Patch file for xdoc
Filename:
MIME Type:
Creator:
Eric Pugh
Created:
2002-09-04 00:51:49 UTC
Size:
2.42 KB
patch
obsolete
> >Index: src/documentation/xdocs/hssf/quick-guide.xml >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/documentation/xdocs/hssf/quick-guide.xml,v >retrieving revision 1.7 >diff -u -r1.7 quick-guide.xml >--- src/documentation/xdocs/hssf/quick-guide.xml 15 Aug 2002 14:13:34 -0000 1.7 >+++ src/documentation/xdocs/hssf/quick-guide.xml 4 Sep 2002 00:46:01 -0000 >@@ -30,6 +30,8 @@ > <li><link href="#ReadWriteWorkbook">Reading and writing</link></li> > <li><link href="#NewLinesInCells">Use newlines in cells.</link></li> > <li><link href="#DataFormats">Create user defined data formats.</link></li> >+ <li><link href="#PrintArea">Set print area for a sheet.</link></li> >+ <li><link href="#FooterPageNumbers">Set page numbers on the footer of a sheet.</link></li> > </ul> > </section> > <section title="Features"> >@@ -356,6 +358,45 @@ > fileOut.close(); > </source> > </section> >+ <anchor id="PrintArea"/> >+ <section title="Set Print Area to One Page"> >+ <source> >+ HSSFWorkbook wb = new HSSFWorkbook(); >+ HSSFSheet sheet = wb.createSheet("format sheet"); >+ HSSFPrintSetup ps = sheet.getPrintSetup() >+ >+ sheet.setAutobreaks(true) >+ >+ ps.setFitHeight((short)1); >+ ps.setFitWidth((short)1); >+ >+ >+ // Create various cells and rows for spreadsheet. >+ >+ FileOutputStream fileOut = new FileOutputStream("workbook.xls"); >+ wb.write(fileOut); >+ fileOut.close(); >+ </source> >+ </section> >+ <anchor id="FooterPageNumbers"/> >+ <section title="Set Page Numbers on Footer"> >+ <source> >+ HSSFWorkbook wb = new HSSFWorkbook(); >+ HSSFSheet sheet = wb.createSheet("format sheet"); >+ HSSFFooter footer = sheet.getFooter() >+ >+ footer.setRight( "Page " + HSSFFooter.page() + " of " + HSSFFooter.numPages() ); >+ >+ >+ >+ // Create various cells and rows for spreadsheet. >+ >+ FileOutputStream fileOut = new FileOutputStream("workbook.xls"); >+ wb.write(fileOut); >+ fileOut.close(); >+ </source> >+ </section> >+ > > </section> > </section>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12281
: 2909