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

65644341

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by 65644341

  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. 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})

     

     

     

×
×
  • Create New...