Jump to content
Changes to the Jaspersoft community edition download ×

Report size for printer to large


Recommended Posts

By: prancius - prancius

Report size for printer to large

2006-07-11 12:14

Hello i have made a jasper report, and showing it via java application. When i am saving report to pdf file size is small about ~20kb, but when i am sending this pdf to printer it is about 75mb information for printer. It take few seconds to print.

There piece of code:

 

ArrayList list =new ArrayList();

for (int i=0;i<64;i++)

list.add(new Integer(0));

 

JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);

 

try

{

jasperPrint = JasperFillManager.fillReport (reportFileName,params,ds);

}

 

catch (JRException e)

{

e.printStackTrace();

}

 

return jasperPrint;

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...