本文介绍了sql 2005的Crystal报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在寡妇应用程序中,水晶报告要求输入用户名和密码来显示我正在使用sql 2005和c#编码的报告



我用这个代码打开了水晶报告



表格fm =新表格();

fm.crystalReportViewer1.ShowCloseButton = true;

fm.MdiParent = this.MdiParent;

报告id =新报告();



id.RecordSelectionFormula ={VWEXP.Finyear} ='+ CmbFinyear.Text +'和{VWEXP.InvNo} ='+ CmbInvNo.Text +';

fm.crystalReportViewer1.ReportSource = id;

fm.Show();

In widows application crystal report is asking for username and password to show the reports i am using sql 2005 and c# coding

and i used this the code open the crystal report

form fm= new form ();
fm.crystalReportViewer1.ShowCloseButton = true;
fm.MdiParent = this.MdiParent;
report id = new report();

id.RecordSelectionFormula = "{VWEXP.Finyear}='" + CmbFinyear.Text + "' And{VWEXP.InvNo}='" + CmbInvNo.Text + "'";
fm.crystalReportViewer1.ReportSource = id;
fm.Show();

推荐答案



这篇关于sql 2005的Crystal报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 02:25