Jump to content
Changes to the Jaspersoft community edition download ×

HOW TO: Add a META tag to HTML report

2005 IR Help

Recommended Posts

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">


<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"/>


<textFieldExpression>"Click here to go there"</textFieldExpression>







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




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:






I hope this helps.


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