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

vdetez

Members
  • Posts

    11
  • Joined

  • Last visited

vdetez'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. Hello I have create a java project, based on the java project provided by Jaspertreport project. (Copy of the demo/barbecue project) From this project I open .jrxml file via iReport. I adapt the template and create a datasource inside iReport. (javabean datasource) 1. When I generate the reporting from iReport I don't have any problem; I see my data. 2. when I generate the report from build.xml via Ant in "demo/myproject", I see my report but all my data are null. have you got any idea why it does not work via Ant? Do I need to define the datasource somewhere? thks Valery
  2. Hello I have a master report. In this report I have a data return from the main datasource which has a HashMap as a type. Questions : - how can I pass this HashMap to a subreport? as parameters? - in the subreport how can I loop on the HashMap in a detail band? the hashmap is <String,Integer> and I would like to display them. thks valery
  3. Hello I have already tested to define the "Use a datasrouce expression" as connection type for the definition of subreport in the master one. I tested it with a JavaBean and csv. Always the same problem Any other suggestoins?
  4. hum step further. I see the title that I have in the colum header I don't see the dynamic detail data. Any suggestions?
  5. it does not seem to be the problem. ssubreport expression : - "c:/temp/report5_subreport1.jasper" ou - $(MY_DIR)+"report5_subreport1.jasper" Any other idea? strech type? position type ? in master? other properties for master or subreports? e
  6. Do I absolutely need to pass any data to the subreport? I don't know. As "connection type" parameter I can choose : don't pass data. the data for the subreport are coming directly from the ds defined in the subreport. Moreover when I run the subreport in standalone, I see the data Which kind of filter?
  7. hello I am creating a report with its own Datasource. Preview is ok I add it in a master report and when I preview this one, it does not appear. Do you know why? thks
  8. Hello I created my own Datasource class public class CsvFactory { public static JRCsvDataSource getDS() throws JRException { JRCsvDataSource ds = new JRCsvDataSource("c:\temp\res.csv"); ds.setRecordDelimiter("n"); ds.setFieldDelimiter(';'); ds.setUseFirstRowAsHeader(true); return ds; } } File contains columns : "id", "cat", "Scenario" I put it in the Classpath and defined it like a Custome JRDatasource -com.ds.CsvFactory for factory -getDS as static method in the report I am adding a textfield in the detail band : $F{Scenario} I run it and I have : java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.jaspersoft.ireport.designer.connection.JRCustomDataSourceConnection.getJRDataSource(JRCustomDataSourceConnection.java:127) at com.jaspersoft.ireport.designer.IReportConnection.getJRDataSource(IReportConnection.java:71) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:927) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Any idea why? thks valery
  9. hello I have a csv file and I have created a master datasource with this file to use it in my report. In this report I also would like to create a dataset from this datasource. How can I do it? which query report can I do? and How? select * from 'mycsv datasource'. thks valery
×
×
  • Create New...