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

skuda

Members
  • Posts

    10
  • Joined

  • Last visited

skuda's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. It seems that using a subreport doesn't fix the problem, at the time I will manually delete the last blank page.
  2. Hello, I am using jasperreports 6.1.0. I am creating a label for a product using a report, all the information goes in the detail band, but this problem is reproducible no matter what band I use. I have a main query that get the basic information about the product and a subdataset that get a list of features of the product, from 1 to 3. If the product have more than 1 feature the final report has an extra blank page at the end. I have 108px available and the list element has a height of 33px, the two text elements that the list contain sum 33px too, everything has the correct size. I have tried all the tricks I have been capable of imagine, disable pagination on report (I get blank space after the label), play with the stretch values of list or the contained textfield elements, to use a printwhenexpression checking for the first page, nothing works. I would like to avoid the need to create a subreport but I am getting out of ideas, could anyone help me please? Thanks. Regards, Miguel.
  3. Hi, i am using JasperReports 3.7.6 in my application to create reports, not big reports but invoices and any 2~3 pages reports, all it is working fine but for me it seems it is consuming too much memory, i am not used to java and jvm so maybe it is normal but i would like to be sure, i have created a one page report and rendered with jasper in this operating system combinations: Operating system Virtual Resident/Private Linux x86-64 1800 140 Linux i686 384 98 Windows 7 64 bits (java 32 bits) 98 96 This can seems to be small but in you are using any of this two combinations:1) Old and slow computers with 256Mb ram. 2) Many users connecting to a central server with Nx in Linux or Terminal Services in Windows. In this situations this can be a problem, do this memory usage went down in later versions (4.5.0 for example) or for the worse? Regards, Miguel Angel.
  4. Hi! The workaround it is to launch java with -DsuppressSwingDropSupport=true parameter in command line. Regards, Miguel Angel.
  5. Hello, for all the people suffering this problem, i can confirm that the workaround given here http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598 fixes the problem. Regards, Miguel Angel.
  6. Not that i know, but i have the same problem in my development machine (Arch Linux 2.6.37 x86_64 with java 1.6.0_24 64 bits) that in the production machine (Debian Linux 2.6.32-5-686 with java 1.6.0_22 32 bits). Regards, Miguel Angel.
  7. Hi, try using java.io.InputStream both on the result field of the query and in the image element in the report, if that does not works check that the jdbc driver you are using it is for the version of your Postgresql server or try with a Postgresql 9.0 JDBC driver. Good luck.
  8. I have resolved this one, use a jdbc driver for Postgresql 9.0, it seems they have changed the way they work with bytea columns in the drivers, i have tested with Server version 9.0 and 8.4 without problems. see http://stackoverflow.com/questions/4828266/what-has-changed-between-postgres-jdbc-8-4-and-9-regarding-bytearrays Regards, Miguel Angel.
  9. I am executing from my app JasperViewer for every .jprint file created in my application, if i leave the isExitOnClose=true it closes my application when i close the window and if i use isExitOnClose=false many times after the first usage (the first ever work) i get this errors: sun.awt.X11.XException: Cannot write XdndAware property at sun.awt.X11.XDnDDropTargetProtocol.registerDropTarget(XDnDDropTargetProtocol.java:79) at sun.awt.X11.XDropTargetRegistry.registerDropSite(XDropTargetRegistry.java:554) at sun.awt.X11.XWindowPeer.addDropTarget(XWindowPeer.java:1633) at sun.awt.X11.XComponentPeer.addDropTarget(XComponentPeer.java:1509)at java.awt.dnd.DropTarget.addNotify(DropTarget.java:493) at java.awt.Component.addNotify(Component.java:6666) at java.awt.Container.addNotify(Container.java:2567) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addNotify(Container.java:2578) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addNotify(Container.java:2578) at javax.swing.JComponent.addNotify(JComponent.java:4685) at java.awt.Container.addImpl(Container.java:1068) at java.awt.Container.add(Container.java:927) at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:145) at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:416) at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:380) I am launching for now every time with java commandline to get a new jvm and can trust it but it is slow obviously slow to start a new jvm every time.
  10. Hi all, i am using iReport 4.0.0 and i am getting mad trying to load an image from Postgresql database, i have tried to use every nearly every possible combination of the field Class and expression Class of the image (java.io.InputStream in both, java.lang.String in both, java.lang.Object:java.awt.Image, etc....) but still does not works. The same image works fine if i load directly with the local file in my filesystem, i have no problem to load images from blob types in Mysql but from Postgresql seems impossible, i have tried to encode the binary image file as base64 and load as java.lang.String from iReport but still the same result, i have tried too to use a old lob type object in Postgresql but it does not works either, so i am really lost with this problem. I have searched in the forum and google to no avail but i can't find a solution to load directly from the database. Any help on this please? Regards, Miguel Angel.
×
×
  • Create New...