2

我正在使用 Crystal Reports 10。在报告中我有两个提示。

如何将此报告提供给用户,以便他们可以在 Web 上输入参数?

提前谢谢,S.Gyazuddin

4

2 回答 2

0

If you're using the stand alone crystal reports designer you will need to deploy the report to a web reporting tool such as Crystal Reports Server or Crystal Enterprise. Then allow your users to access it from there.

If you are using .Net then create an ASP.NET page and add a CrystalReportSource control to your report to the page. Then add a CrystalReportViewer control to the page that uses your report source and be sure the checkbox for Enable Report Parameter Prompting is checked. When they load the page it should prompt the user for the parameters.

于 2008-12-04T21:25:09.753 回答
0

这是一些让您开始使用 ReportDocument rpt 的代码;

//set the datasource 
rpt.SetDataSource(reportDataSet.Tables[0]);

ArrayList reportParameters;  // you filled this arraylist with your values coming from aspx page

//set the parameters for mail report
for (int param = 0; param < reportParameters.Count; param++)
{
    rpt.SetParameterValue(param, reportParameters[param]);
}
于 2008-12-22T16:49:16.227 回答