当报表设置为没有登录时,Crystal Reports登录会继续弹出 [英] Crystal Reports Login continues to popup when report is set to not have a login

查看:71
本文介绍了当报表设置为没有登录时,Crystal Reports登录会继续弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一份水晶报告,对数据进行排序,并通过输入不同的名称进行搜索。

我正在使用 AdventureWorks 访问我的教师提供的数据库。有了这个数据库,他要求我们将所有内容放入一个文件夹,然后在完成工作后压缩文件并将其发布到黑板上。



我的问题目前在我的内部数据库连接到我的报告。当我尝试运行我的报告时,我继续被提示输入数据库登录信息。

当我第一次将数据库连接到我的项目时,我选择了OLE DB(ADO)就像我在整个课程中一样通过向导以与以前相同的方式,现在当我的数据库加载时,它会提示输入用户名和密码。虽然昨晚我正在处理我的项目时没有收到任何提示。



这是怎么发生的?



什么文件控制数据库访问信息。由于现在有用户名和密码,水晶报告如何分配给它?



我需要一些有用的提示,在哪里看或应该采取什么步骤解决这个问题。

我在构建项目时也没有收到任何错误。

解决方案

你必须动态设置登录详细信息在运行时。

C#Crystal Reports动态登录参数 [ ^ ]

I'm working on a crystal report that sorts data and allows your search by entering different names.
I'm using the AdventureWorks access database that was provided by my instructor. With this database he has required us to put everything into one folder then after completing the work to zip the files and post them to blackboard.

My problem currently is within my database connection to my report. When I try to run my report I continue to be prompted for a database login information.
When I first connected my database to my project I selected OLE DB (ADO) like I have throughout my class I ran through the wizard the same way as before and now when my database loads today it prompts for user name and password. While last night when I was working on my project I didn't receive a single prompt.

How does this occur?

What file controls the database access information. As there is now user name and password how does crystal reports just assign something to it?

I need some helpful hints in where to look or what steps should be taken to resolve this problem.
I'm also not receiving any errors when I build my project.

解决方案

You have to set logon details dynamically at runtime.
C# Crystal Reports Dynamic Logon parameters[^]


这篇关于当报表设置为没有登录时,Crystal Reports登录会继续弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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