itchytoes Posted August 10, 2009 Share Posted August 10, 2009 Hi --I have some xhtml data with MathML included that I want to format and display as part of a Jasper report.Assuming that I'm willing to write some java code for something that can be "plugged in", is there a way that I can do this, and if so, what is the best approach?I can read the data into a w3.org.dom.Document, for example, but I'm not sure what I can do with it beyond that point.Can I generate any PDF stuff and plug it in? Can I write something that processes a custom element in a jrxml file?Betty Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 21, 2009 Share Posted August 21, 2009 Hi, If the text field markup feature that already exists in JasperReports is not enough for your needs (note that it deals only with text formatting, not with layout or images or anything other than text), then you might want to implement a custom component.JasperReports now comes with a few implementations of custom components such as the list component and the barcodes. The JasperReports Ultimate Guide contains a short tutorial on creating a custom compoent for JasperReports. The 3.5.2 version of the guide is due to be out in a few weeks time. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
itchytoes Posted August 25, 2009 Author Share Posted August 25, 2009 Hi -- Thanks for the suggestion. I believe what I want to do will have to have layout formatting and possibly images. This goes along with an earlier post about wanting to process MathML. I believe you said that I could do a custom markup thing that would handle MathML, but MathML would involve layout issues also. (MathML includes elements like tables to handle matrices). So, I guess my question is, if layout issues are involved, I must implement a custom component, but if it's just text formatting, then I can do a markup thing? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 26, 2009 Share Posted August 26, 2009 Hi, I already told you what markup does for text fields. You ask me again if it should work. Why don't you actually try it?Anyway, here's a link to a tracker that talks about a HTML renderer component:http://jasperforge.org/projects/jasperreports/tracker/view.php?id=4256 Feel free to comment on the tracker or get involved into creating such a component.We think this would be a good contribution to have from the community. It is not something we plan to work soon. Thank you,Teodor 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