Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9002251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:32:43+00:00 2026-06-16T00:32:43+00:00

I created a A5 report in ireport and use in java application. I change

  • 0

I created a A5 report in ireport and use in java application.
I change A5 to A4 format on runtime and View Page but when print Page output be A5 format.

following code:

        JasperDesign _des = JRXmlLoader.load("report1.jrxml");

        _des.setPageHeight(842);
        _des.setPageWidth(595);

        JasperReport _rep = JasperCompileManager.compileReport(_des);

        JasperPrint jasperPrint = JasperFillManager.fillReport(_rep, params, _data);

        JRViewer_com = new JRViewer(jasperPrint);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:32:43+00:00Added an answer on June 16, 2026 at 12:32 am

    There must be something missing in your code that is not supplied in your question. When I created an example and ran it it works. The only change I made was I used the static method JasperViewer.viewReport(jasperPrint, true); to view the report.

    public static void main(String[] args) throws JRException {
        File file = new File("C:\\Test\\src\\report1.jrxml");
        System.out.println("file = "+file.exists());
        JasperDesign _des = JRXmlLoader.load(file);
    
        _des.setPageHeight(842);
        _des.setPageWidth(595);
    
        JasperReport _rep = JasperCompileManager.compileReport(_des);
        JasperPrint jasperPrint = JasperFillManager.fillReport(_rep, new HashMap<String, Object>());
        JasperViewer.viewReport(jasperPrint, true);
    }
    

    If you could provide a small single java class that is runnable and reproduces the issue, I may be able to help more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a report page with A4 format in iReport4.5 and use in java
i created report in iReport, where is text field with format: new DecimalFormat(#,##0.00).format($F{NUMBER}) +
I created this report in iReport Professional 4.5.1 and deployed it to JasperReports Server
I created report using reporting, but i am dizzy for case below here are
I created a report (using Report Builder 3.0) which has two page newsletter style
I'm using iReport 4.6.0 and JasperReports Server 4.5.0 . I've created a report where
I have a report created in iReport. Have a parameter set with isForPrompting=true. When
I have a report created in Jasper Reports which ONLY recognizes java.util.Date's (not Calendar
We use iReport to enable our customers to generate catalogs for print for their
I created a report as part of a C# application using Reporting Services and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.