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

gorfimus

Members
  • Posts

    3
  • Joined

  • Last visited

gorfimus's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. I used concatenation in the subreportExpression. The query of the main report determines the number of columns and stores it in a field. I then use that field in the subreportExpression. Example: <subreport> ... <subreportExpression><![CDATA["subreportName" + $F{columns} + ".jrxml"]]></subreportExpression> </subreport>
  2. Thanks for the suggestion. I'm not sure it would work. I already have the crosstab as a subreport and I'm not sure placing the subreport in a frame would make a difference. I don't see any special positioning properties of a frame element that couldn't already be used by a subreport element. I could be mistaken though? I ended up solving this by creating multiple subreports. For my situation, the number of columns in my crosstab can only vary between 3 and 8 columns, so I have 6 different subreports. Given the number of columns, I know the actual width of the crosstab when it has 3 columns, 4 columns, etc, so each subreport starts the crosstab at the appropriate x coordinate for its number of columns. The main report then selects the correct subreport to render, depending on the number of columns in the crosstab.
  3. I ave a crosstab table in one of my jasper reports and I want to center it horizontally. The number of columns in my crosstab table is of course dynamic, so I need a way to center it regardless of the number of columns. Is this possible? And if so, how?
×
×
  • Create New...