Jump to content
Changes to the Jaspersoft community edition download ×

Page Width is Not Working???

2004 IR Help

Recommended Posts

By: Sivakumar - sivagee

Page Width is Not Working???

2005-06-13 04:28

I am working inJasperReports 0.6.7 with Eclipse 3.1 SWT. The Reports Page width is not getting increased even after setting in the XML. I doubt that the problem will be in where i am connecting Jasper's Panel with SWT's JDialog. I have given the code. Can anyone suggest me? Thanks in Advance...



GridData gridData1 = new GridData();

composite = new Composite(sShell, SWT.NO_BACKGROUND | SWT.EMBEDDED);

composite.setLayout(new FillLayout());


gridData1.grabExcessHorizontalSpace = true;

gridData1.grabExcessVerticalSpace = true;

gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;

gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.FILL;

Frame frame = SWT_AWT.new_Frame(composite);

Panel parentPanel = new Panel(new java.awt.BorderLayout()) {

public void update(java.awt.Graphics g) {

/* Do not erase the background */





JRootPane root = new JRootPane();


java.awt.Container contentPane = root.getContentPane();

contentPane.setLayout(new BorderLayout());

JRViewer panel = createReport();


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