Java reports JXL and POI print settings. __ Report

Source: Internet
Author: User

The JXL print settings are in the Jxl.sheetsettings class, which we can get by means of a method sheet (or Writablesheet) #getSettings ().

1. Page

1.1 Direction

Sheetsetting#setorientation (pageorientation po);

Parameters: Pageorientation#landscape Horizontal Printing

pageorientation# Portrait Portrait Printing

1.2 Zoom

1.2.1 Scaling ratio (A) sheetsetting #setScaleFactor (int);

1.2.2 Adjustment (F)

Page width sheetsetting #setFitWidth (int);

Page High sheetsetting #setFitHeight (int);

1.3 Paper size (Z) sheetsetting #setPaperSize (PaperSize);

The definition of paper size describes the constants in the PaperSize class.

1.4 Start Page (R) sheetsetting #setPageStrart (int); [Default state]

2 page Spacing

2.1 (T) sheetsetting # settopmargin (double);

2.2 (B) sheetsetting # setbottommargin (double);

2.3 Left (L) sheetsetting # setleftmargin (double);

2.4 Right (R) sheetsetting # setrightmargin (double);

2.5 header (A) sheetsetting #setHeaderMargin (double);

2.6 Footer (F) sheetsetting #setFooterMargin (double);

2.7 Center Mode

2.7.1 level (Z) Sheetsetting # Sethorizontalcentre (Boolean);

2.7.2 Vertical (V) sheetsetting #setVerticallyCenter (Boolean);

3 Header/Footer

3.1 Header sheetsetting # setheader (HeaderFooter);

Description

For HeaderFooter settings, first determine the position of the header (left, middle, and right), through Headerfooter#getcentre ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.