Crystal报表在始终打开任何报表时要求数据库登录。 [英] Crystal report asks for database login while opening any report all time.

查看:94
本文介绍了Crystal报表在始终打开任何报表时要求数据库登录。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CReport.SimpleCrystalReportViewer simple = new CReport.SimpleCrystalReportViewer(); // Form 
simple.Show();
CReport.CrystalReportCustomerContactList report = new CReport.CrystalReportCustomerContactList();
report.SetDatabaseLogon(db.UserName, db.Password, db.ServerName, db.DataBase);
report.Load();

simple.crystalReportViewer1.ReportSource = report;
simple.crystalReportViewer1.RefreshReport(); 





我的尝试:



我是Crystal Reports的新手,我制作了Crystal Report,当我在运行时打开报告时,它会询问数据库登录详细信息。因此,每次在运行时单击报告时,我都需要输入登录详细信息。我试图将登录详细信息传递给CrystalReportViewer但仍然存在问题。请帮助我解决这个问题



What I have tried:

I am, new to Crystal Reports, I made Crystal Report and while I open the report during run time, it asks for database login details. So I need to type the login details every time I click for a report during run time. I tried to pass Login details to CrystalReportViewer but still problem persist. Kindly help me with this issue

推荐答案

参考此链接



http://www.codeproject.com/Questions/748565/My-Crystal-reports- asks-for-database-login-while-l [ ^ ]


这篇关于Crystal报表在始终打开任何报表时要求数据库登录。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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