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

Alexander Merz

Members
  • Posts

    37
  • 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 Alexander Merz

  1. 1. Spend some time with reading the API documentation of the classes JRAbstractExporter and JRExporterParameter and derivated classes. 2. Then you will have no problem to understand the examples in the sample directory of the JasperReports distribution. The most of them supports exports in different formats including CSV and Excel.
  2. I'm not sure why you want the summary section at the top of the report. Could it be possible, that you just want to set the evalutionTime attribute of a <textField> to the value "Report"? Then the expression in <textFieldExpression> is evaluated when reaching the end of the report.
  3. I guess document is null. You can easily check it via the debugger in Eclipse. Post edited by: Alexander Merz, at: 2006/08/28 19:41
  4. Are you sure, that the image-servlet actually delievers the images?
  5. Instead of using a scriptlet, you can also extend the datasource class to collect the data and pack the collected data into a second datasource class (ie. JRMapCollectionDataSource) and pass this object to the subreport.
  6. If you have only one field, you could overwrite the getFieldValue() method of the datasource class. something like: Code: class MyDataSource extends OtherDataSource { public Object getFieldValue(JRField jrField) { StringBuffer data = new StringBuffer(""«»); while(a_condition) { data.append((String)super.getFieldValue(jrField)+ " "«»); if(!next()) { break; } } return data.toString(); } } Post edited by: Alexander Merz, at: 2006/08/08 20:27
  7. This behavior is typical, if the heights/widths of bands and/or textboxes and other elements can't be exactly divided by the values giving via the parameters JRTextExporterParameter.PAGE_* or JRTextExporterParameter.CHARACTER_* You may try to play with the values for the parameters, or you may change the measures in your report to better fit the values of the parameters
  8. The HTML-Exporter creates one single HTML page. The 'report pages' are only separated virtually, not physical. You could change the print settings of your browser or the CSS styles(increasing font size etc.) to try to stretch the table of a single report page to fit a real print page. But this is more a hack, which may fail. Some browsers may also support some of the CSS for printing stuff. Use PDF for printing! It ensures what-you-see-is-what-you-get-as-hardcopy. Thats the reason why PDF was invented!
  9. Sounds like you want to add a subreport holding this information.
  10. These properties are set via setParameter() defined by the JRExporter interface. AFAIK it exists no way to pass the parameters through the XML report template.
  11. Take a look on the generated HTML output and check what the src attribute of the <img> tag contains and look where the images are stored actually. Maybe you need to adjust the location of the images via the export parameter IMAGES_URI. Also take care of the value of IS_OUTPUT_IMAGES_TO_DIR.
×
×
  • Create New...