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

How to use HTML component in the PDF report?


65644341

Recommended Posts

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!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...