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

broschb

Members
  • Posts

    24
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by broschb

  1. Bump I am getting the same error. Did you resolve this?
  2. What approach did you take to do this? I am trying to do the same thing, and want to avoid having to do as you suggessted. Has this been implemented in the 3.7 api?
  3. I am looking for the same thing, were you able to find the source for this?
  4. I have a report that allows the user to select some criteria to generate a design at runtime. If the user selects certain criteria it allows for many columns to be created. Currently I adjust the width of the report columns to allow them all to fit on one page. This causes issues w/ really narrow columns in some cases making the data unreadable. I would like to be able to wrap columns to a new page once the width of the page is exceeded. For example if I had 20 columns show the first 10 on one page and then create another page with the same rows, that shows columns 11-20. Is there any way to do this? I have looked at dynamicJasper, and it appears to not support this either. If I use crosstabs it automatically does this for me, but that approach is not robust enough for the current reports I am working with. Thanks,
  5. Harry, thanks for your insight. I have since moved on to using the jasper reports api. It does make things simplier in the long run as you have mentioned. The one problem that I have and am still trying to figure out, and am hoping you can help with is wrapping columns. If I have a report and the column width exceeds that of the page, have you found a way to wrap these columns to a new page? With crosstabs this was handled automatically. thanks,
  6. thanks, I have actually used the api to modify my jasperDesign object and recompile my report. The question I have is, how to I wrap columns. At times the columns I have, created dynamically from user input, exceeds the width of the page. How to I create new pages at the end of the report for the remaining columns. Crosstabs do something similiar when the columns exceed the width of the page, it prints the remaining columns at the end of the report on new pages. How could I achieve something similiar? thanks,
  7. I would definitely agree with you, learning the JasperReports api is very important. I am familiar with it, but I wouldn't say I know it to depth that you do. The example I gave was a quick and dirty example of a possible way to use crosstabs. It still needs work to make it look better, and to be honest I haven't looked at what would be involved. But it allowed me to create a quick example when I needed it. It all depends on what you need to accomplish. I have not written two jasper reports that are similar yet. This is the first report that I have needed dynamic columns for, and time will tell how this works. But I appreciate your insight into this. This seems like something a lot users encounter, and there does not seem to be straightforward way to accomplish this. :)
  8. I have run into the same problem, I just created a blog post that goes through solving this issue using a JRBeanCollectionDataSource, and specifying the columns at runtime. Check it out and let me know if you have any questions. http://broschb.blogspot.com/2008/05/dynamic-jasper-report-using-crosstabs.html
  9. I have run into a similiar problem, I just created a blog post that goes through solving this issue using a JRBeanCollectionDataSource, and specifying the columns at runtime. Check it out and let me know if you have any questions. http://broschb.blogspot.com/2008/05/dynamic-jasper-report-using-crosstabs.html
  10. I have run into the same problem, I just created a blog post that goes through solving this issue using a JRBeanCollectionDataSource, and specifying the columns at runtime. Check it out and let me know if you have any questions. http://broschb.blogspot.com/2008/05/dynamic-jasper-report-using-crosstabs.html
  11. It looks as if you are matching a person to a department using an int for department in the TestBeanPerson, and deptCode in the TestBeanDepartment, is this correct? If so I would just modify your existing beans, I would modify the Department bean to include a collection of Personbeans. Then in your java classes just create a department bean for each department and populate the collection of person beans in the department bean w/ the members of the department. You can then pass this into your report and for each department list the employees in the dept. I'm assuming that this is what you are trying to do. If you wanted to list each person by row w/ their dept. Then just create a personByDept Bean or something similiar, and in the java class combine the person and dept., and feed that bean into the report. I'm not sure of a way off the top of my head to combine two beanDS inside of the report.
  12. if you post your jrxml, i can have a better idea of what you are doing?, as well as a sample of what your datasource you're passing in is. i.e. what type of objects are in the list, do you have lists of lists?
  13. since you passed a copy of your datasource in as a parameter you can use this as the datasource expression $P{ds} And yes, the parameter ds passed in is of type net.sf.jasperreports.engine.data.JRBeanCollectionDataSource
  14. Not sure it this is too late, but in the Map you pass into your report add another parameter, in this case we'll call it ds. map.put("ds",new JRBeanCollectionDataSource(somelist)); and then create the parameter in your main report called ds and of type JRBeanCollectionDataSource. And use this parameter as your datasource to the subreport. $P{ds}
  15. Thanks for the suggestion, I did the following below and received the same results, is this what you were referring to? Code: BufferedImage image = new BufferedImage( width, height, BufferedImage.TYPE_INT_RGB«»); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write(image, "png", baos); ByteArrayInputStream inputStream = new ByteArrayInputStream(baos.toByteArray()); Graphics2D graphics = image.createGraphics(); try { JRGraphics2DExporter exporter = new JRGraphics2DExporter(); exporter.setParameter( JRGraphics2DExporterParameter.GRAPHICS_2D, (Graphics2D) graphics); exporter.setParameter(JRGraphics2DExporterParameter.INPUT_STREAM,inputStream); exporter.setParameter(JRExporterParameter.JASPER_PRINT, ivrPrint); exporter.setParameter(JRExporterParameter.PAGE_INDEX, i); exporter.exportReport(); } catch (JRException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }
  16. I have an application in which i am using the JRGraphics2DExporter to export the graphics object of the report. This works and I can see my report, but it appears that the quality of the image returned is very low. The text is pixelated and grainy looking, and when i print it is even worse. Is there anyway to improve the quality. I am using the following to export the Graphics2D Object. Code: BufferedImage image = new BufferedImage( width, height, BufferedImage.TYPE_3BYTE_BGR); Graphics2D graphics = image.createGraphics(); try { JRGraphics2DExporter exporter = new JRGraphics2DExporter(); exporter.setParameter( JRGraphics2DExporterParameter.GRAPHICS_2D, (Graphics2D) graphics); exporter.setParameter(JRExporterParameter.JASPER_PRINT, ivrPrint); exporter.setParameter(JRExporterParameter.PAGE_INDEX, i); exporter.exportReport(); } catch (JRException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }
  17. unfortunately there are no instances of java.awt in my run.sh. Has anyone been able to find a solution?
  18. I have a simple report that prints out a barcode, i designed this report using the barcode tool in ireport. When i run this report in jboss on windows the report prints fine, the barcode is displayed and the barcode numbers are legible. When i run this report against jboss running on a linux server the report is printed, and the barcodes are legible, and can be read by the scanner, but I get black boxes where the numbers should be. Has anyone else run into this problem, or been able to resolve it? Thanks,
  19. has anyone been able to figure this out, i am running into the same problem? The output is fine when running on windows, but on linux the numbers appear as a black box.
  20. Check the version of java that you are using, was the report compiled against a different version than you are running against.
  21. I have a report with several subreports contained in it. I would like to know if it is possible to determine if the subreport will expand past the current page, and if so force it start printing on the next whole page. thanks,
  22. Thanks, is there any way to eliminate the white space between rows if I increase the band height?
  23. I have a textfield that i would like to wrap text in, i have stretch with overflow set to true. The text will continually get truncated. The textfield height is 15, and the band height for that textfield is 17. If is set the band height to double or more the height of the textfield then the text wraps fine, but rows with no wrap don't look as nice. For example if i have the following rows. 1.this is some really long text that is wrapping 2.This is some text 3.more text I get white space equal to the height of the num of rows the longest text wraps to. I would like it displayed like this: 1.this is some really long text that is wrapping 2.This is some text 3.more text Below is the xml: <detail> <band height="17" isSplitAllowed="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self"> <reportElement x="0" y="0" width="226" height="15" key="textField" stretchType="RelativeToTallestObject" positionType="Float" isPrintRepeatedValues="false" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{comment}]]></textFieldExpression> </textField></band> </detail> thanks,
  24. I am having the same issue, i need to create a list with formatting in the following manner. 1 5 2 6 3 7 4 8 I have introduced columns into my report but i am still unable to do this, any help would be appreciated. as an update i have been able to do this but not with the desired results, setting up columns allows this but only if i have a large dataset, and even then i get results similar to the following. 1 10 2 11 3 12 4 5 6 7 8 9 I would like to have the same number of results in each column. Post edited by: broschb, at: 2006/12/05 16:23
×
×
  • Create New...