VS2010的Crystal Report显示部署后的登录名 [英] Crystal Report for VS2010 show Login when deployed

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

问题描述

大家好,

我在VS2010中与Windows Form项目有关的问题
VS2010的SAP Crystal Reports.

当我在客户端的PC上部署项目时,它会显示一个登录对话框.
客户端的PC是XP.
我已经在他们的PC中安装了正确的运行时.
当出现登录对话框并单击取消按钮时,
报告会正确显示.

但是我们的客户不想总是看到登录对话框.

我已经尝试过这样修复它:
•在代码(CrystalDecisions.Shared.ConnectionInfo)中添加连接和登录信息
•验证并重新连接数据库
•重新安装Crystal Report的运行时(CRRuntime_32bit_13_0_1.msi)

但是什么都行不通.

我在设计报告时使用XML模式.
我没有直接连接到数据库,所以数据库并不是真正的问题.
像这样:

Hi all,

I am having a problem with my Windows Form project in VS2010 regarding
the SAP Crystal Reports for VS2010.

When I deploy my project on client''s PC it shows a login dialog box.
The client''s PC is in XP.
I already installed the correct runtime in their PC.
When the login dialog box appear and the cancel button is clicked,
the Report shows correctly.

But our client did not want to always see the login dialog box.

I already try to fix it like this:
• Add connection and login info in the codes (CrystalDecisions.Shared.ConnectionInfo)
• Verify and reconnect the database
• Reinstall the runtime of Crystal Report(CRRuntime_32bit_13_0_1.msi)

But nothing works.

I am using an XML schema in designing the report.
I do not directly connect to a database so the Database is not really an issue.
Like this:

CrystalReport.SetDataSource(DataSet);



我使用的框架是C#.Net 3.5.
我的项目是Windows窗体.
我的VS2010版本的Crystal Report是13.0.1

我已经用谷歌搜索了,但是没有用.

请帮帮我.
在此先谢谢您.



The framework I use is C#.Net 3.5.
My project is in Windows Form.
My Crystal Report for VS2010 version is 13.0.1

I already googled it but nothing works.

Please help me.
Thanks in advance.

推荐答案

请确保您将代码
CrystalReport.SetDataSource(DataSet);


在InitializeComponent方法之后的窗体类构造函数中.


in Form Class Constructor after the InitializeComponent method.


这篇关于VS2010的Crystal Report显示部署后的登录名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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