2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 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()); composite.setLayoutData(gridData1); 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 */ paint(g); } }; frame.add(parentPanel); JRootPane root = new JRootPane(); parentPanel.add(root); java.awt.Container contentPane = root.getContentPane(); contentPane.setLayout(new BorderLayout()); JRViewer panel = createReport(); contentPane.add(panel); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now