简体   繁体   English

使用按钮单击事件在新的“窗口/浏览器”选项卡中打开Crystal报表?

[英]Crystal report open in a new Window/browser tab using button click event?

I am using Vb.net(webapp) code to generate monthly payment history. 我正在使用Vb.net(webapp)代码生成每月付款记录。 So I have a button on payment duration selection page and want generate a Crystal report in new tab/ window after clicking the generate report button? 因此,我在“付款期限选择”页面上有一个按钮,想在单击“生成报告”按钮后在新的标签页/窗口中生成Crystal报表吗?

let's suppose you crystal report page name is (CRPage). 假设您的水晶报表页面名称为(CRPage)。 So you can use the following to open that page using: 因此,您可以使用以下命令打开该页面:

Response.Write("<script>")
Response.Write("window.open('CRPage.aspx')")
Response.Write("</script>")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM