0

Opening jasperreport in zkoss using internet explorer 9

asked 2013-06-04 08:21:55 +0800

emriti gravatar image emriti
9

Hi,

I cannot open jasper report using zkoss in IE9, it always prompting save dialog. But fortunately it works in Firefox 21 and Chrome 27+. Does anybody experience same things? and how to solve it?

Thanks in advance
Emriti

sampel_report.zul

<?page title="sampel_report" contentType="text/html;charset=UTF-8"?>
<window title="sampel_report" border="normal" id="sampelReport"
    apply="org.zkoss.bind.BindComposer"
    viewModel="@id('vm') @init('com.report.view_model.SampelReportViewModel')">
    <button label="Show Report" onClick="@command('showReport', rpt=report)" />
    <jasperreport id="report" height="360px"/>
</window>

SampelReportViewModel

    package com.report.view_model;

    import java.util.HashMap;
    import java.util.Map;

    import org.zkoss.bind.annotation.BindingParam;
    import org.zkoss.bind.annotation.Command;
    import org.zkoss.zkex.zul.Jasperreport;

    public class SampelReportViewModel {

        @Command
        public void showReport(@BindingParam("rpt") Jasperreport report) {
            Map<String, Object> parameters = new HashMap<String, Object>();
            parameters.put("Title", "value");
            report.setSrc("/Report5.jasper");   
            report.setParameters(parameters);
        }
    }
delete flag offensive retag edit
Be the first one to answer this question!
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-06-04 08:21:55 +0800

Seen: 10 times

Last updated: Jun 04 '13

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