Updated documentation so that Fix To example is named properly.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shawn Laubach 2003-10-23 17:20:41 +00:00
parent e14256aed1
commit 53b75e9c11

View File

@ -31,7 +31,7 @@
<li><link href="#ReadWriteWorkbook">Reading and writing</link></li> <li><link href="#ReadWriteWorkbook">Reading and writing</link></li>
<li><link href="#NewLinesInCells">Use newlines in cells.</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="#DataFormats">Create user defined data formats.</link></li>
<li><link href="#PrintArea">Fit sheet to one page</link></li> <li><link href="#FitTo">Fit Sheet to One Page</link></li>
<li><link href="#PrintArea2">Set print area for a sheet.</link></li> <li><link href="#PrintArea2">Set print area for a sheet.</link></li>
<li><link href="#FooterPageNumbers">Set page numbers on the footer of a sheet.</link></li> <li><link href="#FooterPageNumbers">Set page numbers on the footer of a sheet.</link></li>
<li><link href="#ShiftRows">Shift rows.</link></li> <li><link href="#ShiftRows">Shift rows.</link></li>
@ -420,14 +420,14 @@
fileOut.close(); fileOut.close();
</source> </source>
</section> </section>
<anchor id="PrintArea"/> <anchor id="FitTo"/>
<section><title>Set Print Area to One Page</title> <section><title>Fit Sheet to One Page</title>
<source> <source>
HSSFWorkbook wb = new HSSFWorkbook(); HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("format sheet"); HSSFSheet sheet = wb.createSheet("format sheet");
HSSFPrintSetup ps = sheet.getPrintSetup() HSSFPrintSetup ps = sheet.getPrintSetup();
sheet.setAutobreaks(true) sheet.setAutobreaks(true);
ps.setFitHeight((short)1); ps.setFitHeight((short)1);
ps.setFitWidth((short)1); ps.setFitWidth((short)1);