在同一浏览器的新选项卡中打开Crystal Report [英] open Crystal Report in a new tab within the same browser
本文介绍了在同一浏览器的新选项卡中打开Crystal Report的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Crystal报道的新手。这是我用来在新窗口中打开水晶报告的代码
string url = ./Reports/ReportQuotationDetails.aspx?ID = + IndexID.ToString();
ScriptManager.RegisterClientScriptBlock(Page,Page.GetType(), NewWindow, window.open(' + url + ','_ blank','height = 600,width = 900,status = no,toolbar = no,menubar = no,location = no,scrollbars = no,resizable = no, titlebar = no');, true );
但我希望 知道如何 打开 Crystal Report 在同一浏览器中的新标签页。我怎么能这样做?
解决方案
我认为你在WebPage中显示报告,你需要在新标签中打开它。
如果是这样请从打开报告页面所需的页面调用此页面。
< pre lang =xml> String s =< SCRIPT 语言 =' javascript' > +window.open('+ sPgName +')< / SCRIPT > ;
if(!this.Page.ClientScript.IsStartupScriptRegistered(OpenWindo))
this.RegisterStartupScript(OpenWindo,s);
sPgName是您的报告页面名称
是的我在网页中显示报告,我想在新的标签页面中打开它。非常感谢你,但它没有工作.. 。
i遗憾地认为这取决于浏览器的设置...
再次感谢你的时间......
I am new to Crystal reports. This is my code I already use to open crystal report in a new window
string url = " ./Reports/ReportQuotationDetails.aspx?ID=" + IndexID.ToString();
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "NewWindow", "window.open('" + url + "','_blank','height=600,width=900,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,titlebar=no' );", true);
But I want to know how to open Crystal Report in a new tab within the same browser. How can I do that?
解决方案
I think you are displaying report in a WebPage and you need to open it in a new tab.
if so pls call this from which page you you need to open the report page.
String s= "<SCRIPT language='javascript'>" + " window.open('" + sPgName + "')</SCRIPT>"; if(!this.Page.ClientScript.IsStartupScriptRegistered("OpenWindo")) this.RegisterStartupScript("OpenWindo", s);
sPgName is your repot page name
yes i'm displaying report in a Web Page and i want to open it in a new tab.thank you very much but it didn't working...
i think sadly it depends on the browser settings...
thank you again your time...
这篇关于在同一浏览器的新选项卡中打开Crystal Report的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文