C# Crystal Report-程序运行时避免参数提示框
我正在尝试在.NETC#Windows窗体中实现CrystalReport。通过项目参数提示框运行crystal report时询问参数。所有参数均由C#中的动态设置 代码:C# Crystal Report-程序运行时避免参数提示框,c#,.net,winforms,crystal-reports,C#,.net,Winforms,Crystal Reports,我正在尝试在.NETC#Windows窗体中实现CrystalReport。通过项目参数提示框运行crystal report时询问参数。所有参数均由C#中的动态设置 代码: ReportDocument rptDoc = new ReportDocument(); rptDoc.SetDataSource(dt1); rptDoc.Load("Cheque
ReportDocument rptDoc = new ReportDocument();
rptDoc.SetDataSource(dt1);
rptDoc.Load("ChequePrint.rpt");
rptDoc.SetParameterValue(0, trnKy);
// Set Data Base Connection
rptDoc = this.SetCrystalConnection(rptDoc);
// Pass Report Document to Crystal Viewer form
frmCrystalReportViewer crystalViewFrm = new frmCrystalReportViewer();
crystalViewFrm.loadReport(rptDoc);
crystalViewFrm.Show();
Crystal Viewver窗体:
try
{
rptDoc.Refresh();
crystalReportViewer1.ReportSource = rptDoc;
success = true;
}
catch (Exception ex)
{
success = false;
}
我可以问一下参数的顺序以及它们是什么数据类型吗?这只是一个参数。数据类型很长