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

65644341

Members
  • Posts

    4
  • Joined

  • Last visited

65644341's Achievements

  1. Hi all. I'm using jasperreport+ireport to export PDF document. I've got a question: how to render a html snippet in the PDF ? I added a Html Component in the template and tried to insert a snippet like this: "<html> <div class="myclass1"> ... </div> <div class="myclass2"> ... </div> <img src="http...."> ... </html>" just like you see, I've got many custom styles & css in the html snippet,and how could i render it in the exported pdf document? If the snippet is simple, it works fine,but when the snippet is a little complex ,it turns out incorrectly. So how could i implement my requirement ? And I found another problem that I can't newline in the HTML Content Exp. Anybody know this pls tell me thanks!
  2. I've got another method by controling in java code: define this field as String override the getFieldValue(JRField paramJRField) in your relative dataSource class when you get the value in your java code ,you can convert them to a string.
  3. Do you install the iReport? if yes,you can see the property "print when expression" in the property panel. eg.you've got 2 text fields fieldA and fileldB.If you want to display the A only if the fieldB is not empty. The print when expression in the Text A could be :F{filedB}!=null &&!"".equals(F{fieldB})
  4. I want to change a default image in the jasperreports-5.2.0netsfjasperreportsengineimages. For example the image-16 ,I just want to use my own custom image instead of the default one.But i don't want to replace it. I just don't want to repack the .jar. Thanks verson 5.2.0
×
×
  • Create New...