1

I want to know if it is possible to hide the column in JasperReports if the column contains no data.

mdahlman
  • 9,039
  • 4
  • 43
  • 72
  • 1
    Can you please explain what you have tried so that others in the community can help you from there on. – Gangadhar Mar 09 '12 at 04:05
  • @RozieRozack Do you want to avoid using java API? – Alex K Mar 09 '12 at 08:32
  • For exp. i have the data shows below: Year Types of Car 2009 2010 2011 Toyota 1 Honda 0 Suzuki 1 Total 2 if i choose the data for year 2009(key in parameter), then the data for that year will appear, for others contains no data, so i want to hide the column for year 2010 and 2011. Is it possible? – Rozie Rozack Mar 09 '12 at 08:33
  • Yes, it is possible. You can use the crosstab, for example – Alex K Mar 09 '12 at 08:37
  • Possible duplicate of [How to show/hide a column at runtime?](http://stackoverflow.com/questions/116053/how-to-show-hide-a-column-at-runtime) – Alex K Jul 21 '16 at 21:39

1 Answers1

-1

Check the property of that column in Ireport whether "Remove Line when Blank" option is check or uncheck. using this property u can hide that column

Sharad
  • 3,442
  • 6
  • 33
  • 59