动态更改Crystal Report中的服务器名称 [英] Dynamically changing of Server Name in Crystal Report

查看:100
本文介绍了动态更改Crystal Report中的服务器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我的项目是在C#.NET中使用Microsoft Access作为其数据库,数据库的初始位置在E:\Project Folder中,我的数据库的名称是Bill.accdb。

我使用Visual Studio设计了一个水晶报告,具有相同的数据库。它工作正常。



当我更改数据库的位置时出现问题,显示登录失败。请再试一次错误。



我的问题是:是否有任何可靠的方法来更改服务器和db代码(在运行时),所以一旦我们使用某些报告,它们仍将在另一个上运行服务器机器与其他数据库?



我感谢任何帮助...

上帝保佑

Shweta Saxena

Hello All,

My project is in C#.NET with Microsoft Access as its database, with the initial location of database in E:\Project Folder, and the name of my db is Bill.accdb.
I designed a crystal report using Visual Studio, with the same database. And it works fine.

The problem arises when I changed the location of my database, It is showing "Login Failed. Please Try Again Error."

My question is: Is there any reliable way to change the server, and db from code (during runtime) so once we go live with some reports, they will still work on the other server machine with the other db?

I appreciate any help...
God Bless
Shweta Saxena

推荐答案

您是如何在水晶报告中定义数据源的???
How did you define the data source in your crystal report..??


这篇关于动态更改Crystal Report中的服务器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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