0

Jasper report error "Failed to load"

asked 2013-03-26 07:10:47 +0800

leoyc gravatar image leoyc
163 3

updated 2013-03-29 07:29:10 +0800

who can tell me why ? ZK 6.5.1 can't suport Jasperreport 4.0 or is Jasperreport compoent bug? pprint.zul:

   <?xml version="1.0" encoding="GB2312"?>
<zk>
    <window id="pwin" border="normal" closable="true" maximizable="true"
        width="100%" height="100%" position="center,center" >
        <caption>
            <div align="center">
                <label value="print report" style="font-weight:bold" />
            </div>
        </caption>

        <zscript>
           mrpname=session.getWebApp().getRealPath("/rpt/Test.jasper");
        </zscript>

        <jasperreport id="report" src="${mrpname}"   width="100%" height="100%" type="pdf"/>

    </window>
</zk>

image description

delete flag offensive retag edit

2 Answers

Sort by » oldest newest most voted
0

answered 2013-03-27 04:47:54 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

See Dynamic Jasper Report with ZK Example see if it will help you to resolve the issue

link publish delete flag offensive edit

Comments

Can not access

leoyc ( 2013-03-28 09:05:06 +0800 )edit

Can you give me your demo application?

sjoshi ( 2013-03-28 17:08:17 +0800 )edit

I Create Test Report under Ireport3.0,Ireport3.7,Ireport4.0,Ireport4.8. Only Ireport3.0's report can runing and result it's ok. test report is static text.

leoyc ( 2013-03-29 07:26:00 +0800 )edit

But i already using Ireport4.8 and its working for me

sjoshi ( 2013-03-29 10:51:02 +0800 )edit

What's about zk's version? it's ZK5.6.1?

leoyc ( 2013-03-29 14:13:25 +0800 )edit
0

answered 2013-04-01 10:29:27 +0800

leoyc gravatar image leoyc
163 3

updated 2013-04-01 10:31:40 +0800

add those jar:asm-4.0.jar,groovy-2.1.2.jar. it's ok.

thanks sjoshi.

link publish delete flag offensive edit

Comments

asm-4.0.jar but why you need groovy.jar here for Jasper reports i do not understand?

sjoshi ( 2013-04-01 10:36:14 +0800 )edit

I don't understand too, why ireport 3.0 not need "asm-4.0.jar and groovy-2.1.2.jar."

leoyc ( 2013-04-01 10:55:18 +0800 )edit

i dont think it will need groovy but asm-4.0 it will need Groovy is scripting laguage

sjoshi ( 2013-04-01 11:12:45 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-03-26 07:10:47 +0800

Seen: 42 times

Last updated: Apr 01 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More