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

colombianboss561

Members
  • Posts

    4
  • Joined

  • Last visited

colombianboss561's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Hello, I'm having an issue with adding borders to textfields while using the JasperDesing api/classes. When I create the exact same .jrxml file through the client vs through the JasperDesign api, I get different results. Witht the client the report is generated as expected but with the api its as follows: I've been using the following code to create the textfields. The weirdest thing is that if I remove the border code, it works fine. Clearly the issue is from adding borders to the textfields, but I need to be able to do that. JRDesignTextField textField = new JRDesignTextField();textField.setMode(ModeEnum.OPAQUE);textField.setBackcolor(Color.LIGHT_GRAY);textField.setFontName(FONT);JRLineBox box=textField.getLineBox();box.getTopPen().setLineColor(Color.WHITE);box.getTopPen().setLineWidth(1);box.getBottomPen().setLineColor(Color.WHITE);box.getBottomPen().setLineWidth(1);box.getLeftPen().setLineColor(Color.GRAY);box.getLeftPen().setLineWidth(1);box.setTopPadding(TOP_PADDING);box.setBottomPadding(BOTTOM_PADDING);box.setLeftPadding(LEFT_PADDING);[/code]I'm beggingin to think this is an issue as it can only be created using the JasperDesign api and not with the client, or even with the same jrxml file. If anyone has figured out how to solve this issue I would really appreciate the help. Thanks you.
  2. Hello, I'm running into a situation where I need to disallow values to repeat, BUT I also need to apply style to the TextField that gets ommited. I've attached an image to explain the situation. As you can see, there is one TextField that does not have the red backcolor as the rest, and it's because I have set the "Print Repeated Values" attribute to false for that TextField. My questions is how can I apply style to the TextFields that are not being repeated? For example, in my case, how would I make the backcolor of that TextField blue? Thanks!
×
×
  • Create New...