如何在asp.net c#中调用已创建的水晶报告。 [英] How to call an already created crystal reports in asp.net c#.

查看:70
本文介绍了如何在asp.net c#中调用已创建的水晶报告。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Crystal报表与数据集连接,但问题是调用另一页的单击按钮。

解决方案

您必须在.aspx上使用报表查看器控件页面查看报告。



1.点击按钮,您只需要重定向到您拥有报告查看器控件的页面。



2.在页面加载时你必须写下面提到的代码。



ReportDocument cryRpt = new ReportDocument();

cryRpt.Load(PUT CRYSTAL REPORT PATH HERE \\CrystalReport1.rpt);

crystalReportViewer1.ReportSource = cryRpt;

crystalReportViewer1.Refresh ();

Crystal report is connected with dataset but the problem is to call on click button of another page.

解决方案

You have to use Report Viewer control on the .aspx page to view the report.

1. On button click you just need to redirect to the page on which you are having Report Viewer control.

2. On page load you have to write the below mention code.

ReportDocument cryRpt = new ReportDocument();
cryRpt.Load(PUT CRYSTAL REPORT PATH HERE\\CrystalReport1.rpt");
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();


这篇关于如何在asp.net c#中调用已创建的水晶报告。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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