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

ashuanindian

Members
  • Posts

    2
  • 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 ashuanindian

  1. Hello, I hava to print a subreport for each row in main report, but the problem is I got my data for subreport only when I am returning a field value for one of the column in main report. I read jasper reports do not support typical datatypes in field values( $F{abc} can hold only limited datatypes like string, number etc) like Arrays, List, Collection or JRDataSource. These complex datatypes are supported by Parameters but parameter values should be passed to main report during JasperFillManager.fillreport() function at that time I don't have datasource for my subreport. Is there any way by which I can pass my JRDataSource to subreport during exporting main report? Please tell me If it is possible or not. If it is then how. Please help me about this. Thanks
  2. How to create custom hyperlinks in jasper reports from java itself. There is enough information in creating hyperlinks from design file but in my program I have nothing in design file, I am filling it from java like this. JRDesignTextField txtField = getJRDesignTextField( x, 0, width, 30, normalFont, new Color(255,255,255), new Color(0,0,0), JRTextElement.HORIZONTAL_ALIGN_LEFT, JRTextElement.VERTICAL_ALIGN_MIDDLE );JRDesignExpression exp = new JRDesignExpression();exp.setValueClass( String.class );exp.setText("$F{"+ displayName +"}");txtField.setBox(box);txtField.setExpression( exp );detailBand.setSplitAllowed(false);txtField.setPrintWhenDetailOverflows(true);txtField.setPrintRepeatedValues(true);txtField.setPrintInFirstWholeBand(true);detailBand.addElement(txtField); and similarly I want to create hyperlinks in these textfields along with the anchor tags.If any small demo program is there than It would be very benificial for me.Thanks
×
×
  • Create New...