Jump to content
We've recently updated our Privacy Statement, available here ×

set page margin by users on the fly


Recommended Posts

By: pauline - javababe

set page margin by users on the fly

2006-02-15 22:47

Hi group,

 

Wondering if anyone knows how to make report margin set by users on the fly? iReport seems to only provide set page margin function when coding. If anyone knows any tool or anyway to do it, please let me know.

 

Thanks a lot!!

 

Pauline

 

 

 

 

By: Christiaan - christiaan_se

RE: set page margin by users on the fly

2006-02-16 06:42

Hi,

I am just starting with JasperReports myself, but was also looking at this. If you want to adjust the margins programmatically (not sure if this is what you're asking for) you can do:

JasperDesign design = JRXmlLoader.load("C:/testreport.jrxml");

design.setLeftMargin(50);

 

kind regards,

Christiaan

 

 

 

 

 

 

By: pauline - javababe

RE: set page margin by users on the fly

2006-02-21 18:57

Thanks a million, Christiann!! That's exactly what I need!!

 

Thanx for your help!

 

Pauline

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...