Crystal Report询问登录信息 [英] Crystal Report Ask For Log in information

查看:75
本文介绍了Crystal Report询问登录信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我设计了水晶报表,并使其存储过程为数据源,并将其链接为WPF形式,这是使用的代码

hi guys ,
i designed my crystal Report and Make my stored procedure as it is data Source and link it to be showed in WPF Form this is the used code

ReportDocument rptdc = new ReportDocument();
CrystalReportViewer rptViewer = new CrystalReportViewer();
  string Str_FullPath; // the path of the report
  rptdc.Load(this.FullPath);
  rptdc.SetDatabaseLogon(Cls_Utility.UserName, Cls_Utility.PassWord, Cls_Utility.ServerName, Cls_Utility.DataBaseName);
  rptViewer.ReportSource = rptdc;
  this.reportviewer.Child = rptViewer;



我们是一个由三名成员组成的团队,可以在其PC上正常工作,但我除外给我一个登录窗口以输入登录信息,我该如何解决此问题?

谢谢Advanced



we are a team of three Members it work fine on their PC Except Me Gives me a log in window to enter log in information how can i solve this problem ?

thanks in advanced

推荐答案



将报告凭据设置为

Hi,

Set the report credential like

ReportDocument rptdc = new ReportDocument();
         CrystalReportViewer rptViewer = new CrystalReportViewer();
           string Str_FullPath; // the path of the report
           rptdc.Load(this.FullPath);
          report.DataSourceConnections(0).SetConnection("Server", "Database", "UserName", "password");
        rptViewer.ReportSource = rptdc;
           this.reportviewer.Child = rptViewer;



谢谢,
阿德什·拉姆(Adersh Ram BK)



Thanks,
Adersh Ram BK


这篇关于Crystal Report询问登录信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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