水晶报表的模式弹出窗口............. [英] Modal Popup window for crystal report .............

查看:58
本文介绍了水晶报表的模式弹出窗口.............的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码在弹出窗口中以pdf格式显示我的水晶报告.但是,我需要显示modalpopup窗口而不是常规弹出窗口,
我需要进行哪些更改.

任何帮助表示赞赏.

I am using below code to show my crystal report in pdf in a popup window. But, I need to display modalpopup window instead of regular popup window,
what changes i need to make to do so.

Any help is appreciated.

RptDoc.ExportToDisk(ExportFormatType.PortableDocFormat,Server.MapPath("/SRVRpt.pdf"));
string popupscript = "<script language=''javascript''>"+"window.open(''/SRVRpt.pdf'');</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(),"PopUpWindow", popupscript, false);

推荐答案

使用showModalDialog如下所示
Use showModalDialog like as below
RptDoc.ExportToDisk(ExportFormatType.PortableDocFormat,Server.MapPath("/SRVRpt.pdf"));
string popupscript = "<script language="''javascript''">" + "window.showModalDialog(''/SRVRpt.pdf'','''','''');</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(),"PopUpWindow", popupscript, false);


这篇关于水晶报表的模式弹出窗口.............的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆