473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Regarding connectivity at runtime in Crystal Reports

hi,

i am creating an asp.net based application using c#. and in this application
i am using crystal reports (Ver. 9) drastically which come with the dotnet
set up 2003 and the backend is SQL Server 2000.

now the problem is this, that when i migrated my SQL server database to any
other computer having different IP, then i have to change the database
location in every rpt file of crystal report. now in msdn i found a class
"logoninfo" in dotnet framework and i used that for runtime connectivity of
the rpt file to my new database. but the code is not working.
pls. help me out in this problem. the code which i am writing is given below:

CrystalDecisions.Shared.TableLogOnInfo objlogoninfo = new
CrystalDecisions.Shared.TableLogOnInfo();
CrystalDecisions.Shared.ConnectionInfo objconninfo = new
CrystalDecisions.Shared.ConnectionInfo();

objconninfo = objlogoninfo.ConnectionInfo;
objconninfo.DatabaseName = "e-office";
objconninfo.ServerName = ".";
objconninfo.Password = "";
objconninfo.UserID = "sa";

CrystalReportViewer1.LogOnInfo.Add(objlogoninfo);
Regards

Himanshu Saxena
Nov 19 '05 #1
0 897

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pramod Thewarkar | last post by:
Hi, My winform application is using crystal reports. Users have the .net runtime installed on their machine and are running the winform application from a shared folder on the network. While...
0
by: Pramod Thewarkar | last post by:
Hi, My winform application is using crystal reports. Users have the .net runtime installed on their machine and are running the winform application from a shared folder on the network. While...
12
by: Tony Ciconte | last post by:
We are evaluating the prospect of integrating and/or using Crystal Reports with some of our current products. Some of these are still in Access 97 and are running well. Since we cannot include the...
0
by: akshaycjoshi | last post by:
Most of you people are already familier with the working of crystal reports unlike me.I am working on an application when I have no other option but to use CR. It is very diff. for me to read an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.