Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoutered errors with hc:html component #7

Open
jingzhaoou opened this issue Jan 20, 2014 · 2 comments
Open

Encoutered errors with hc:html component #7

jingzhaoou opened this issue Jan 20, 2014 · 2 comments

Comments

@jingzhaoou
Copy link

Hi, all,

I am able to use staticText and barcode and other components through the Jasper plugin 1.7 release.

When I include the following hc:html component into my code,

<componentElement>
    <reportElement x="0" y="0" width="572" height="125" uuid="78cb89bf-8914-4d67-bd63-b31605945387"/>
    <hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="RetainShape" horizontalAlign="Left" verticalAlign="Middle">
        <hc:htmlContentExpression><![CDATA["<p style='background-color:yellow;'>HTML paragraph</p>"]]></hc:htmlContentExpression>
    </hc:html>
</componentElement>

Grails reports errors:

URI
/ajax/report
Class
java.io.FileNotFoundException
Message
http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd

Could someone shed some light here? Am I missing some jar file required by the html component? Your help will be highly appreciated.

Best regards,
Jingzhao

@bouhanef
Copy link

To solve this, you should add the library jasperreports-htmlcomponent.

  • If you are using maven you add :
<dependency>
  <groupId>net.sf.jasperreports</groupId>
  <artifactId>jasperreports-htmlcomponent</artifactId>
  <version>5.0.1</version>
</dependency>

@klebergraciasoares
Copy link

No Exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants