65644341 Posted December 25, 2014 Share Posted December 25, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now