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

findashwin

Members
  • Posts

    15
  • Joined

  • Last visited

findashwin's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Hi, I am using(JasperReport 2.0.4) net.sf.jasperreports.engine.export.oasis.JROdtExporter. I am trying to create hyperlinks at run time which is not happening. I have no problem with other exporters I am able to generate hyper links[for HTML,RTF etc]. But JROdtExporter isnt able to do that. Looked at the code, it looks like some methods that write the hyperlinks were commented out. What do you suggest? You can tell me 1) Tough luck man, write your own ODTExporter 2) Oh, we fixed that bug in a later release Ashwin
  2. Thanks. I appreciate it. I wanted to make sure if there is any direct way of doing it. For now I will think of extending the JRpdfExporter.
  3. I am generating custom hyperlinks. Is there a way I can specifty that the links have to be underlined when exporting to pdf? I dont see this problem in html because, I can modify the header and specify the kind of anchor decoration.
  4. Is there a way, I can specify a general hyperlink style? I donot see this problem in html, because I can specify => a{text-decoration: underline} which ensures that hyperlinks if created, look different from other cells.
  5. Is there a way, I can specify a general hyperlink style? I donot see this problem in html, because I can specify => a{text-decoration: underline} which ensures that hyperlinks if created, look different from other cells.
  6. I have a report(Tabular). At compile time I dont know which of the cells are going to be hyperlinks. So by default, all my cells are custom hyper links(in .jrxml). I have written an implementation of JRHyperlinkProducer, which at runtime will provide a link if a cell turns out to be a hyper link, else it returns null and hence the cell isn't clickable. How would I apply styles to those cells that turn out to be "real" hyperlinks(during export) in pdf.
  7. If I choose to export a document setting the JRExportParameter.OUTPUT_STRING_BUFFER, how would that behave when exporting html with images or exporting pdf or any other format. Any information will be helpful?
  8. I dont know if I understood you correctly? Double.valueOf($F{COL_ID})>0?10:0; cant you put an expression like this?
  9. whoa! I got it finally. I wasnt setting the background of text to JRElement.MODE_OPAQUE.
  10. I have a more basic problem. The background color that I am setting on JRDesigntextfield doesnt show up in pdf or html. I am doing this programmatically. Is there anything else that I need to do? this is the textfield is declared. <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="150" height="15" backcolor="#00FF00"/> <box> <pen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{COLUMN_1}]]></textFieldExpression> </textField>
  11. Ok. If I use printwhenexpression functionality, I can get alternate row coloring to work. No Problem there. But that is not the solution to export in html. So after doing some looking around, I have decided to use styles & conditional styles. For some reason, I see no coloring in either pdf or html? Code snippet here.... style declaration in begining of jrxml ------------------------------------------- <style name="row_style" isDefault="false" ackcolor="#00FF00"> <conditionalStyle> <conditionExpression><![CDATA[boolean.valueOf( $V{PAGE_COUNT}.intValue() % 2 == 1 )]]> </conditionExpression> <style isDefault="false" backcolor="#FFFF00"/> </conditionalStyle> </style> ----------------------------------------- place where its referenced is as follows <textField isStretchWithOverflow="true" > <reportElement style="row_style" x="0" y="0" width="150" height="15"/> <box> <pen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{COLUMN_1}]]></textFieldExpression> </textField>
  12. It depends. If speed is not an issue. Its better to store the JRXML file bcos it gives greater flexibility. You cannot modify all elements in the report file. Where as you can modify the JRXML file any how you want.
  13. Ok. I figured out how to color alternate rows programmatically? Does anybody know if the background color of a reportElement can be changed after a .jasper file is created? i.e. Can you parameterize the color attribute?
  14. 1)I want to color alternate rows. I did read some suggestions of using setPrintwhenExpression. Can anybody point me to examples where they are used or how to use it? 2) Is there a way I can send some of the report properties like color, background image as parameters to the report(.jasper file- when calling FillManager)? I want to do this programatically, where a user can choose a particular template( background color, header string, footer string, font size etc) and those values will be used when creating the Print object(*.print) from the report(*.jasper).
×
×
  • Create New...