2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Fred Welland - fwelland HOW TO: Add a META tag to HTML report 2003-09-25 11:50 In the <head> section of the generated HTML, I want JasperReports to include a <META> tag. How? The XML report is trivial: <?xml version="1.0"?> <!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="Whoopee" pageHeight="200"> <detail> <band height="50"> <textField hyperlinkType="Reference"> <reportElement x="0" y="20" width="510" height="15" forecolor="#0000FF"/> <textElement textAlignment="Center"> <font isBold="true" isUnderline="true"/> </textElement> <textFieldExpression>"Click here to go there"</textFieldExpression> <hyperlinkReferenceExpression>"http://www.somwhere.com/index.html"</hyperlinkReferenceExpression> </textField> </band> </detail> </jasperReport> I don't care if the META gets skipped for PDF or other formats... Can you even do this? By: cosjav - cosjav RE: HOW TO: Add a META tag to HTML report 2004-08-16 22:25 someone who knows please reply to this, because I am very interested in implementing this myself... By: Teodor Danciu - teodord RE: HOW TO: Add a META tag to HTML report 2004-08-17 01:11 Hi, The JRHtmlExporter lets you override some portions of the generated HTML content. You have to use the exporter directly to make use of this parameters: JRHtmlExporterParameter.HTML_HEADER JRHtmlExporterParameter.BETWEEN_PAGES_HTML JRHtmlExporterParameter.HTML_FOOTER I hope this helps. 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