473,395 Members | 1,774 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,395 software developers and data experts.

Crystal report logonserver

Das
Hi everyone,

I have been using crystal report with visual basic 6. I know with crystal
report & sql server, if there is a different server name than the one you
created report. It prompts as Unable to Logon server.

I used to use the following code in vb6 which worked perfectly fine with vb6
to connect to any server.

Dim tlb As CRAXDDRT.DatabaseTable

For Each tbl In Report.Database.Tables
tbl.SetLogOnInfo DBServer, dBName, DBUser, DBPassword
Next

Report.Database.LogOnServer "PDSSQL", DBServer, dBName, DBUser, DBPassword

With code given above I can connect to any given server. But now I'm using
crystal report with c#. I try to connect with code as given below

rpt.SetDatabaseLogon(clsDefine.STR_DBUSERID ,clsDefine.STR_PASSWORD,
clsDefine.STR_SERVER,clsDefine.STR_DATABASE);

But If there is different database server It gives an error unable to logon
to the server.

Thanks in advance....
Nov 17 '05 #1
0 2162

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

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
4
by: dschl | last post by:
Has anyone had any luck getting Crystal Reports 8.5 to work with the Sql Server 2000? I keep getting a "Unable to open Database" error. I've tried opening with either the .Connect property and...
0
by: Das | last post by:
Hi everyone, I have been using crystal report with visual basic 6. I know with crystal report & sql server, if there is a different server name than the one you created report. It prompts as...
1
by: bthomas71chevy | last post by:
I have just setup a WebServer and all the applications work fine, but when every any of the applications try to generate a Crystal Report the page errors out. "File or assembly name...
1
by: Travis | last post by:
When I use the code below , I encounter the login error. But I am sure I am using the correct login and password and I was test using Query Analyzer Set crReport =...
3
by: ranesmitas | last post by:
hello, i using vb 6 and i did report seagate crystal report . i want to know how it use in vb . i did some code but it not display anything code is Public strReportPath As String Public...
0
by: ranesmitas | last post by:
when we use external crystal report in vb then to connet folloing line comes so when we not create DSN means we r ADODB connection then if database name =abc in access ...
0
by: ranesmitas | last post by:
hi , i using vb and backend access and external seagate crystal report i create report having folling code Public strReportPath As String Public strRecordSelection As String Dim crystal As New...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.