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

fahad.anjum002

Members
  • Posts

    7
  • Joined

  • Last visited

fahad.anjum002's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Please add your solution as well. I am facing the same issue.
  2. You can use below function to handle this situation. "<style isBold='true'>"+ net.sf.jasperreports.engine.util.JRStringUtil.xmlEncode("Text Field &") + "</style>" Outout: Text Field & You can read more about JRStringUtil.
  3. Lets say , report 1 uses X query with X_SQL and report 2 uses Y query with Y_SQL. If both of the query has same number of column then it is great otherwise add additional column with respect to X_SQL and Y_SQL in order to union both query. Remember you have to generate one number series column and one dummy column in your sql. You can generate number series dynamically in your sql. X_SQL with two new column (number_series,'detail1'as dummy) union Y_SQL with two new column (number_series,'detail2'as dummy) order by number_series, dummy OUTPUT of SQL: X_SQL column , 1 as number_series, 'detail1' as dummy Y_SQL column , 1 as number_series, 'detail2' as dummy X_SQL column , 2 as number_series, 'detail1' as dummy Y_SQL column , 2 as number_series, 'detail2' as dummy Now add two detail band in your new report. Height of report is only one detail band height + top and bottom padding. 1 detail band = first report design 2 detail band = second report design U can use subreport if your jrxml is too complex. Now in print when expression of detail band use detail band 1 : $F{dummy}.equals('detail1') detail band 2 : $F{dummy}.equals('detail2') Note: 1) you need to order by in your sql query. 2) height of report need to choose properly. If still you are having issue then i suggest to post your jrxml.
×
×
  • Create New...