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.Databa seTable
For Each tbl In Report.Database .Tables
tbl.SetLogOnInf o 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.SetDatabase Logon(clsDefine .STR_DBUSERID ,clsDefine.STR_ PASSWORD,
clsDefine.STR_S ERVER,clsDefine .STR_DATABASE);
But If there is different database server It gives an error unable to logon
to the server.
Thanks in advance.... 0 1478 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tim Jones |
last post by:
Hey all,
I am trying to try get a crytal report running properly. A "Hello World"
report that does not add criteria to the record selection formula of the
report (either in the development tool, or in the code) works fine.
However, when I try to add any parameter through the record selection
formula and/or the report parameters method, the report crashes.
I have tried each of the methods:
|
by: Max |
last post by:
Hi wise people,
Has anyone encountered the Crystal Reports problem I describe below?
If so, how did you solve it? It seems that every article posted on
google regarding CR and logon problems is still unanswered. I think
I'm cursed.
I originally created a crystal report which connects to a sql server
server db on the same dev machine and it worked just fine. I tried to
move it to another computer, but now I have to connect to an Oracle...
|
by: Karun Karunakaran |
last post by:
Hi,
I am using the Crystal Enterprise .NET assemblies to generate and
display a crystal report in a webform. This report connects to an SQL
server (running locally) using a specific username and password. I use
the InfoStore object to query for the report from the CE server (also
running locally) and bind it to the CrystalReportViewer control in the
webform.
I am getting an "SQL Server logon failed" when I try to generate this
|
by: Milan Todorovic |
last post by:
Hello,
I need help. I have experience in ASP.NET programming, but this is my first
dealing with Crystal Reports. I'm trying to make the most basic report
purely for testing purposes: connect to the remote SQL DB and create a
report on one of the tables. Every time I do it, I get the Logon Failed
error (CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed)
The internet search shows that this is a common problem,...
|
by: Shawn H. Mesiatowsky |
last post by:
I have come across lots of information regarding this, but nothing seems to
work. I have created a Crystal Report that access's a SQL server backend for
the data, and I want to display the report via a webform and the
CrystalViewer Web Component. First of all, I have been using Trusted
Connections so far (for data access) and really do not want to have some
static login information in my web app. but most of the documents so far
have...
| |
by: Timmy Jones |
last post by:
Hey all,
I am trying to try get a crytal report running properly. A "Hello World"
report that does not add criteria to the record selection formula of the
report (either in the development tool, or in the code) works fine.
However, when I try to add any parameter through the record selection
formula and/or the report parameters method, the report crashes.
I have tried each of the methods:
|
by: Michael O'Donnell |
last post by:
Hi All
Am having major problem with crystal reports...Have
designed my report no problem, its when I try to run and
display ther report that I am getting a "Login Failed"
message. At first I thought it might have to do with the
regristration key, but that ok, when I right click on
Servers in the server explorer and then expand the
Crystal Server, there is a red x beside the Crystal
Enterprise. When I click on log in, I am asked for a
|
by: Hugh O |
last post by:
Hi,
I have been trying to load a Crystal Report newly created via VS.Net 2003.
I am using a simply ASP form with only the Crystal Report Viewer. The
sample report results display in the WebForm1.aspx, when I have set the
databinding Report Source property set at design time.
I get the following error message when I try to run the report.
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
In searching Google, in...
|
by: bonita |
last post by:
I come across the error
"CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed."
After I move my asp.net code from the development platform (XP
professional) to the production web server (windows 2003 server) by
generating the msi file from the setup and deployment project and
adding the merge modules. The msi file is installed to the windows 2003
server. The installation unzips all the files to the windows 2003
server....
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |