How to scale paper size for jasper reports?

0

My Jasper report is based on A3 paper but the user says they usually just print in A4.

He wants me to set the scale to 71% by default. Is this possible?

Am I better to redesign this report using a A4 paper?

Li Gang's picture
21
Joined: Sep 10 2019 - 4:18am
Last seen: 1 week 1 day ago

5 Answers:

0
Attachments: 
AttachmentSize
Image icon page_format.png31.95 KB
Sad H's picture
77
Joined: Sep 8 2020 - 5:58am
Last seen: 1 day 16 hours ago
0
Attachments: 
AttachmentSize
Image icon page_format_properties.png45.15 KB
Sad H's picture
77
Joined: Sep 8 2020 - 5:58am
Last seen: 1 day 16 hours ago
0

It does not work.

Although the paper size has been resized, the components remain in their original positions.

Li Gang's picture
21
Joined: Sep 10 2019 - 4:18am
Last seen: 1 week 1 day ago
0

Yes, you have to resize/postion the components by your self.

Sad H's picture
77
Joined: Sep 8 2020 - 5:58am
Last seen: 1 day 16 hours ago
0

 

open the Jasper report with xml or text editor and add these two lines:

<Page width> 210mm </Page width>

<Page Hieght> 297mm </Page Hieght>

after this line:

`<Page>`
bhoopalkiranappmajix's picture
Joined: Sep 15 2020 - 10:45pm
Last seen: 2 weeks 20 hours ago
Feedback
randomness