Jump to content
We've recently updated our Privacy Statement, available here ×

aeid

Members
  • Posts

    15
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by aeid

  1. Hi,

     

    I am using JR 1.3.4 and I am seeing a very strange behavior.

     

    The report is a simple chart added to the summary band.

     

    When the report is exported to HTML, the chart is not complete ... while it is complete if it is exported to PDF or XML!!!

     

    See attachment for details.

     

    Regards,

     

    Ashraf Eid

     

    Post edited by: aeid, at: 2007/10/18 22:26 [file name=htmlVsPdf.doc size=53760]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/htmlVsPdf.doc[/file]

    Post edited by: aeid, at: 2007/10/18 22:29

  2. Hi,

     

    If you are still having the same problem, check if you have any .jasper files in the directory containing your .jrxml files that you are trying to compile.

     

    I had the same problem. Make sure that you save your .jasper in a separate folder which is NOT a subfolder of the one that contains the .jrxmk files that you trying to compile.

     

    Code:

    <jasperReportCompile
    srcdir="${report.src.dir}"
    destdir="${www.dir}/reports"

     

    Regards,

     

    Ashraf

  3. Hi Lucian,

     

    You are right.

    The problem is that when I use JR 1.3.4, I get this error during compilation:

    Code:
    [jasperReportCompile] net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
    [jasperReportCompile] 1. java.lang.ClassNotFoundException: com.speakesl.server.admin.web.esl.reports.ClassesOverallDashboardReportScriplets
    [jasperReportCompile] at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:260)
    [jasperReportCompile] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:144)
    [jasperReportCompile] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)
    [jasperReportCompile] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:128)
    [jasperReportCompile] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:110)
    [jasperReportCompile] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:413)
    [jasperReportCompile] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:259)
    [jasperReportCompile] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [jasperReportCompile] at org.apache.tools.ant.Task.perform(Task.java:364)
    [jasperReportCompile] at org.apache.tools.ant.Target.execute(Target.java:341)
    [jasperReportCompile] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [jasperReportCompile] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [jasperReportCompile] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [jasperReportCompile] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [jasperReportCompile] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [jasperReportCompile] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [jasperReportCompile] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [jasperReportCompile] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

    BUILD FAILED

     

    However, if if I move back to JR 1.3.1, I do not get this error.

     

    Any ideas?

     

    Regards,

     

    Ashraf

  4. Thanks Marty for your reply. But as I mentioned in my original post, I already have other JSPs in the SAME web application that are displaying the non-english characters correctly.

    Note that the default encoding for JasperReports is UTF-8 which should do the job.

     

    Regards,

     

    Ashraf

  5. Hi,

     

    I am seeing very strange behaviour when using JRHtmlExporter:

    - The report contains special characters like single quotes and non-english characters.

    - When the report is generated as HTML through iReport, the characters are displayed correctly.

    - When generating the same report through my web application as part of a JSP page, the non-english characters appear as ????? and the single quote is displayed as '

    - When generating the same exact report as PDF through the same web application (using JRPdfExporter), all characters are displayed correctly.

    - I am using arialuni.ttf for PDF encoding:

    Code:
    	FontKey key = new FontKey("Arial", false, false);
    PdfFont pdfFont = new PdfFont( reportsPath + "/fonts/arialuni.ttf", "Identity-H", true);

    Map fontMap = (Map) pdfExporter.getParameter( JRExporterParameter.FONT_MAP );

    - The same web application is displaying non-english characters correctly through other JSPs.

     

    All help is highly appreciated.

     

    Regards,

     

    Ashraf

  6. Hi,

     

    I am using jasperReports 1.3.4.

    I am trying to use the hyperlink feature but I am having problem with passing the hyperlink parameter.

     

    Here is a snippet of my report code:

    Code:
    				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="LocalAnchor"  hyperlinkTarget="Self" >
    <reportElement
    x="267"
    y="5"
    width="267"
    height="17"
    forecolor="#000000"
    backcolor="#FFFFFF"
    key="textField"/>
    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
    <textElement>
    <font size="12"/>
    </textElement>
    <textFieldExpression class="java.lang.String"><![CDATA[$F{NAME}]]></textFieldExpression>
    <hyperlinkAnchorExpression><![CDATA["/classDetails.do"]]></hyperlinkAnchorExpression>

    <hyperlinkParameter name="classid">
    <hyperlinkParameterExpression><![CDATA[$F{CLASSID}.toPlainString()]]></hyperlinkParameterExpression>
    </hyperlinkParameter>
    </textField>

     

    The hyperlink generated in the html file looks as follows:

    Code:
    [code]<td colspan="5"><a href="classDetails.do"><span style="font-family: sansserif; font-size: 12.0px;">Guest</span></a></td>

     

    I was expecting the classid parameter to be set in the hyperlink.

     

    Please advice.

     

    Regards,

     

    Ashraf Eid

    Post edited by: aeid, at: 2007/06/28 04:07

×
×
  • Create New...