在我的 Webform 上创建一个按钮来打开我的 CrystalReportViewer
Creating A button on my Webform to open up my CrystalReportViewer
我刚刚开始编码(我现在使用的是 visual studio 2012),我现在的任务之一是从 Web 表单中打开 crystalreportviewer onclick 一个按钮,我创建了 webform/db/crystalreport 但我只是不知道如何在我的浏览器上打开 crystalreportviewer 以及如何将它链接到按钮 onclick。
经历了很多tutorials/videos/blogs还是不明白怎么解决。
如有任何帮助,我们将不胜感激。
protected void Button1_Click(object sender, EventArgs e)
{
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("YOURCRYSTALREPORTFILE");
CrystalReportViewer1.ReportSource = cryRpt;
}
我已经弄清楚如何创建一个按钮并单击它会通过加载
打开 crystal 报告
我刚刚开始编码(我现在使用的是 visual studio 2012),我现在的任务之一是从 Web 表单中打开 crystalreportviewer onclick 一个按钮,我创建了 webform/db/crystalreport 但我只是不知道如何在我的浏览器上打开 crystalreportviewer 以及如何将它链接到按钮 onclick。
经历了很多tutorials/videos/blogs还是不明白怎么解决。
如有任何帮助,我们将不胜感激。
protected void Button1_Click(object sender, EventArgs e)
{
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("YOURCRYSTALREPORTFILE");
CrystalReportViewer1.ReportSource = cryRpt;
}
我已经弄清楚如何创建一个按钮并单击它会通过加载
打开 crystal 报告