Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Log in dialog displayed while opening report Post Reply Post New Topic
Author Message
aschip
Newbie
Newbie
Avatar

Joined: 15 Jul 2009
Location: India
Online Status: Offline
Posts: 2
Quote aschip Replybullet Topic: Log in dialog displayed while opening report
     Posted: 04 Aug 2009 at 12:05am
I have a crystal report, where I have added a dataset (.xsd) from another assembly.
The dataset uses 3 tables and I have used different fields from these 3 tables in my report.

At runtime, I create an object of that dataset, fill it with appropriate data and then assign it to the report
as
report.SetDataSource(DsTest);

Now in debug build, this work find. However in release build on a test machine, when I open the report, the crystal reports viewer opens up and then a login dialog pops up saying "Database login" with "DsTest" as the server(?) name and asking for username and password.

How do I get rid of this dialog?

How does one work with disconnected datasets with multiple tables in Crystal reports?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 04 Aug 2009 at 6:11am
I assign the dataset, like you did, and then I open a reportviewer and set the report to the one that I want.  I have never had a problem.  I only have 2 tables, and they don't relate to each other (one holds the parameters).  Thinking back, I do have a couple that have more tables (usually for subreports).  I have never been prompted with a password.  I am assuming that your datasource is ADO.net
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum