Hi list-reader,

fiddling in the area of formatting & printing I ran into
trouble trying to scale some data to page size.
Using the code like

[..]
      // printing optimized
      iSheet.setMargin(HSSFSheet.LeftMargin, 0);
      iSheet.setMargin(HSSFSheet.RightMargin, 0);

      HSSFPrintSetup ps = iSheet.getPrintSetup();

      ps.setLandscape(true);
      iSheet.setAutobreaks(true);
      ps.setPaperSize(HSSFPrintSetup.A4_PAPERSIZE);

      ps.setFitHeight((short) 1);
      ps.setFitWidth((short) 1);
[..]

print out the lines nicely fitting on the page when
I'm in the situation that there are only one page
to print. But as soon as I have to deal with more
data (page counts in the area of 40 or more) the 
setAutobreaks() methode reduces the scaled print 
image to a nearly micros-scopic font size and un-
readble lines.
Looking at the sources of 2.0-pre I get the impres-
sion the constellation with many line more than
one paper size width are spoilling the fit to page
functionality.
Before I start in the direction to make my line fit
by adding wrapping and re-design of my sheets and
all the groupping and summation:

Is there anybody out there who avoid this effect?

Many greetings from Germany, thx for reading, much
more for writting ;=).

cu Stefan

P.S.: I'm using the 2.5.1 final 2004/08/04 version.
--
Tel:    +49-(0)221-149-5953
Fax:    +49-(0)221-149-97-5953
E-Mail: [EMAIL PROTECTED]
Stefan Marx, M.A.
www.marx-consulting.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to