sql 2005的Crystal报告 [英] Crystal report for sql 2005

查看:63
本文介绍了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();

推荐答案

您必须在运行时分配登录详细信息。检查这个



C#Crystal Reports动态登录参数 [ ^ ]
You have to assign the login details at runtime. Check this

C# Crystal Reports Dynamic Logon parameters[^]


csharp-crystal-reports-dynamic-login.htm [ ^ ]


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

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