473,763 Members | 8,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports - Database Login dialog when using datasets

I'm developing an VB.NET Windows Forms application that uses CR for VS.NET
(original version shipped with VS.NET 2002 - my VS.NET has the latest SP
installed, no SPs for CR).
My reports get their data from ADO.NET Datasets that are pre-populated by
other modules of the application.
What I need to do is to use these datasets as the datasources of my reports.
Fine, I know how to do that and it works perfectly on my development box.
The trouble comes when I deploy the application on the client machine.
I created a installation project in VS.NET, added the required CR merge
modules, added the keycode, and it seems to install everything fine. But
when it tries to show the reports in the CrystalReportVi ewer control, it
pops-up the 'Database Login' dialog.
Who is talking about database here? I'm already giving all the needed data.

The reports were all created from typed datasets, using datasources of type
ADO.NET(XML).
It seems that a lot of people have the same problem but the only workaround
so far appears to be "use only one DataTable inside your dataset, containing
all the data you need". I'm trying not to have to resort to this approach
because my datasets are very complex with many tables.
What I've read in other similar posts is that it seems that CR gets lost
when the dataset has more than one table

Is this a confirmmed bug or am I missing something ?
This is how my code looks like:

reportDocument = new MyCustomReport( )
reportDocument. SetDataSource(m yLoadedDataset)
ReportViewerCon trol.ReportSour ce = reportDocument

Thanks

TJ!


Nov 19 '05 #1
7 34787
The problem resides in the name of the table when you fill it. You must
make sure that the name of the table is always the same. I got around
this by using the Stored procedure name as the table name but then ran
into the same problem you are having when I corrected a spelling mistake
in the stored procedures name.

sqlDAdapter1.Fi ll(myDataSet,"M yTable");

Hope this helps. You can use the debugger to check the table name and
compare it to the table name that you used in the crystal report.

Sincerely,
Paul J Barrett
TJoker .NET wrote:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET
(original version shipped with VS.NET 2002 - my VS.NET has the latest SP
installed, no SPs for CR).
My reports get their data from ADO.NET Datasets that are pre-populated by
other modules of the application.
What I need to do is to use these datasets as the datasources of my reports.
Fine, I know how to do that and it works perfectly on my development box.
The trouble comes when I deploy the application on the client machine.
I created a installation project in VS.NET, added the required CR merge
modules, added the keycode, and it seems to install everything fine. But
when it tries to show the reports in the CrystalReportVi ewer control, it
pops-up the 'Database Login' dialog.
Who is talking about database here? I'm already giving all the needed data.

The reports were all created from typed datasets, using datasources of type
ADO.NET(XML).
It seems that a lot of people have the same problem but the only workaround
so far appears to be "use only one DataTable inside your dataset, containing
all the data you need". I'm trying not to have to resort to this approach
because my datasets are very complex with many tables.
What I've read in other similar posts is that it seems that CR gets lost
when the dataset has more than one table

Is this a confirmmed bug or am I missing something ?
This is how my code looks like:

reportDocument = new MyCustomReport( )
reportDocument. SetDataSource(m yLoadedDataset)
ReportViewerCon trol.ReportSour ce = reportDocument

Thanks

TJ!


Nov 19 '05 #2
I created a small sample project that reproduces the error and making it
available on the following url:

http://sergiopereira.com/temp/test_crystal.zip

In the zip file there are two projects.. one for the test application and
one for the Setup.
What I in my test application was
- Defined a typed ADO.NET dataset (DataSet1.xsd)
- Created a report (CrystalReport1 .rpt)
- Created some menus options:
- one to load the data from a Database server (northwind
database) into a dataset of type DataSet1
- one to create a report of type CrystalReport1 and bind that
dataset the report
- one to save the dataset's xml to C:\
- one to load the dataset with XML from C:\ and show the report

I ran this app in my local development box (where weverything always
works), loaded the dataset from the database, viewed the report, and saved
the XML to a file in c:\. Later I ran the application again and loaded the
XML from C:\. All that worked perfectly.
Then I built the installation, and installed on the client machine. Then I
put that XML file in its C:\ and tried to, ran the app and tried to load the
using the menu option.. Boom! Same "Database Login" screen...

Could anyone please verify my sample project and possibly try to reproduce
this ? Something could be missing from the deployment documentation, which I
read and I am following thoroughly.

By the way, I forgot to also mention that the user executing the application
is always the administrator of the computer, so this shouldn't be any
permissions problem.

Thanks for the help.

TJ
"Paul J. Barrett" <pa************ @nospamcoderjun to.com> wrote in message
news:3f33c93b$1 @la-news-01....
The problem resides in the name of the table when you fill it. You must
make sure that the name of the table is always the same. I got around
this by using the Stored procedure name as the table name but then ran
into the same problem you are having when I corrected a spelling mistake
in the stored procedures name.

sqlDAdapter1.Fi ll(myDataSet,"M yTable");

Hope this helps. You can use the debugger to check the table name and
compare it to the table name that you used in the crystal report.

Sincerely,
Paul J Barrett
TJoker .NET wrote:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP
installed, no SPs for CR).
My reports get their data from ADO.NET Datasets that are pre-populated by other modules of the application.
What I need to do is to use these datasets as the datasources of my reports. Fine, I know how to do that and it works perfectly on my development box. The trouble comes when I deploy the application on the client machine.
I created a installation project in VS.NET, added the required CR merge
modules, added the keycode, and it seems to install everything fine. But
when it tries to show the reports in the CrystalReportVi ewer control, it
pops-up the 'Database Login' dialog.
Who is talking about database here? I'm already giving all the needed data.
The reports were all created from typed datasets, using datasources of type ADO.NET(XML).
It seems that a lot of people have the same problem but the only workaround so far appears to be "use only one DataTable inside your dataset, containing all the data you need". I'm trying not to have to resort to this approach because my datasets are very complex with many tables.
What I've read in other similar posts is that it seems that CR gets lost
when the dataset has more than one table

Is this a confirmmed bug or am I missing something ?
This is how my code looks like:

reportDocument = new MyCustomReport( )
reportDocument. SetDataSource(m yLoadedDataset)
ReportViewerCon trol.ReportSour ce = reportDocument

Thanks

TJ!

Nov 19 '05 #3
you have my sympathy.

"TJoker .NET" <no****@nonono. no> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
I am in contact with CrystalDecision s support (through that dreaded Answer
by email system)

Nov 19 '05 #4
I can't see your orriginal question, but to suppress the DB Login dialog I
had to explicitly set the login info for every connection at the time when
the report was loaded. That was the only way I could do it.

HTH,
Jeremy

"K. Shier" <ks*****@spamAt YourOwnRisk.yah oo.com> wrote in message
news:eg******** ******@TK2MSFTN GP12.phx.gbl...
you have my sympathy.

"TJoker .NET" <no****@nonono. no> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
I am in contact with CrystalDecision s support (through that dreaded Answer by email system)



Nov 19 '05 #5
Got it to work!!!!!!!!!

After using a more decent support account (my company bought Crystal
Enterprise Server) I was able to chat with the "real people" support.
After messing aroung with try and error procedures, we figured out the
obvious, the version of some of the dlls were mixed.
The funny thing is that it was mixed because I had downloaded their very own
update for the merge modules:
http://support.crystaldecisions.com/...s/cr_net_merge
modules_en.zip. asp
But, fear not! Now you can download this update with confidence because it
has been fixed, although they did not correct the publishing date. This
update has been corrected after 8/6/2003 (when I downloaded it) but the
website did not make clear that there was a new version available.
I just downloaded the new version, installed, recompiled my setup, ran in
the client box and it worked!

Thanks fr anyone following this thread.

TJ

"TJoker .NET" <no****@nonono. no> wrote in message
news:eN******** *****@tk2msftng p13.phx.gbl...
I created a small sample project that reproduces the error and making it
available on the following url:

http://sergiopereira.com/temp/test_crystal.zip

In the zip file there are two projects.. one for the test application and
one for the Setup.
What I in my test application was
- Defined a typed ADO.NET dataset (DataSet1.xsd)
- Created a report (CrystalReport1 .rpt)
- Created some menus options:
- one to load the data from a Database server (northwind
database) into a dataset of type DataSet1
- one to create a report of type CrystalReport1 and bind that
dataset the report
- one to save the dataset's xml to C:\
- one to load the dataset with XML from C:\ and show the report
I ran this app in my local development box (where weverything always
works), loaded the dataset from the database, viewed the report, and saved
the XML to a file in c:\. Later I ran the application again and loaded the
XML from C:\. All that worked perfectly.
Then I built the installation, and installed on the client machine. Then I
put that XML file in its C:\ and tried to, ran the app and tried to load the using the menu option.. Boom! Same "Database Login" screen...

Could anyone please verify my sample project and possibly try to reproduce
this ? Something could be missing from the deployment documentation, which I read and I am following thoroughly.

By the way, I forgot to also mention that the user executing the application is always the administrator of the computer, so this shouldn't be any
permissions problem.

Thanks for the help.

TJ
"Paul J. Barrett" <pa************ @nospamcoderjun to.com> wrote in message
news:3f33c93b$1 @la-news-01....
The problem resides in the name of the table when you fill it. You must
make sure that the name of the table is always the same. I got around
this by using the Stored procedure name as the table name but then ran
into the same problem you are having when I corrected a spelling mistake
in the stored procedures name.

sqlDAdapter1.Fi ll(myDataSet,"M yTable");

Hope this helps. You can use the debugger to check the table name and
compare it to the table name that you used in the crystal report.

Sincerely,
Paul J Barrett
TJoker .NET wrote:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR).
My reports get their data from ADO.NET Datasets that are pre-populated by other modules of the application.
What I need to do is to use these datasets as the datasources of my reports. Fine, I know how to do that and it works perfectly on my development box. The trouble comes when I deploy the application on the client machine.
I created a installation project in VS.NET, added the required CR merge modules, added the keycode, and it seems to install everything fine. But when it tries to show the reports in the CrystalReportVi ewer control, it pops-up the 'Database Login' dialog.
Who is talking about database here? I'm already giving all the needed data.
The reports were all created from typed datasets, using datasources of type ADO.NET(XML).
It seems that a lot of people have the same problem but the only workaround so far appears to be "use only one DataTable inside your dataset, containing all the data you need". I'm trying not to have to resort to this approach because my datasets are very complex with many tables.
What I've read in other similar posts is that it seems that CR gets lost when the dataset has more than one table

Is this a confirmmed bug or am I missing something ?
This is how my code looks like:

reportDocument = new MyCustomReport( )
reportDocument. SetDataSource(m yLoadedDataset)
ReportViewerCon trol.ReportSour ce = reportDocument

Thanks

TJ!


Nov 19 '05 #6
Got it to work!!!!!!!!!

After using a more decent support account (my company bought Crystal
Enterprise Server) I was able to chat with the "real people" support.
After messing aroung with try and error procedures, we figured out the
obvious, the version of some of the dlls were mixed.
The funny thing is that it was mixed because I had downloaded their very own
update for the merge modules:
http://support.crystaldecisions.com/...s/cr_net_merge
modules_en.zip. asp
But, fear not! Now you can download this update with confidence because it
has been fixed, although they did not correct the publishing date. This
update has been corrected after 8/6/2003 (when I downloaded it) but the
website did not make clear that there was a new version available.
I just downloaded the new version, installed, recompiled my setup, ran in
the client box and it worked!

Thanks fr anyone following this thread.

TJ
"Jeremy Cowles" <jeremy.cowle s[nosp@m]asifl.com> wrote in message
news:DC******** ************@tw ister.tampabay. rr.com...
I can't see your orriginal question, but to suppress the DB Login dialog I
had to explicitly set the login info for every connection at the time when
the report was loaded. That was the only way I could do it.

HTH,
Jeremy

"K. Shier" <ks*****@spamAt YourOwnRisk.yah oo.com> wrote in message
news:eg******** ******@TK2MSFTN GP12.phx.gbl...
you have my sympathy.

"TJoker .NET" <no****@nonono. no> wrote in message
news:u5******** *****@TK2MSFTNG P10.phx.gbl...
I am in contact with CrystalDecision s support (through that dreaded Answer by email system)


Nov 19 '05 #7
ward0093
1 New Member
I found out something... You need to check the properties in the "Datasource Location" screen on your form/report (in the designer). In more detail... right click on "Database Fields" and choose "Set Datasource Location"... then verify or "Replace" the datatable (or dataset) you have with the new one.

This is a HUGE ISSUE if you were using a custom namespace and, from the previous post/replys had to remove the namespace... it DOES NOT get removed from the datasource. Now, using this "Set Datasource Location" helps with not having to redesign or drop the fields (or new fields) back on the form... it simply updates it for you.

This got rid of the "Database Login Dialog" from popping up!

i hope this helps someone
ward0093



The problem resides in the name of the table when you fill it. You must
make sure that the name of the table is always the same. I got around
this by using the Stored procedure name as the table name but then ran
into the same problem you are having when I corrected a spelling mistake
in the stored procedures name.

sqlDAdapter1.Fi ll(myDataSet,"M yTable");

Hope this helps. You can use the debugger to check the table name and
compare it to the table name that you used in the crystal report.

Sincerely,
Paul J Barrett


TJoker .NET wrote:
[color=blue]
> I'm developing an VB.NET Windows Forms application that uses CR for VS.NET
> (original version shipped with VS.NET 2002 - my VS.NET has the latest SP
> installed, no SPs for CR).
> My reports get their data from ADO.NET Datasets that are pre-populated by
> other modules of the application.
> What I need to do is to use these datasets as the datasources of my reports.
> Fine, I know how to do that and it works perfectly on my development box.
> The trouble comes when I deploy the application on the client machine.
> I created a installation project in VS.NET, added the required CR merge
> modules, added the keycode, and it seems to install everything fine. But
> when it tries to show the reports in the CrystalReportVi ewer control, it
> pops-up the 'Database Login' dialog.
> Who is talking about database here? I'm already giving all the needed data.
>
> The reports were all created from typed datasets, using datasources of type
> ADO.NET(XML).
> It seems that a lot of people have the same problem but the only workaround
> so far appears to be "use only one DataTable inside your dataset, containing
> all the data you need". I'm trying not to have to resort to this approach
> because my datasets are very complex with many tables.
> What I've read in other similar posts is that it seems that CR gets lost
> when the dataset has more than one table
>
> Is this a confirmmed bug or am I missing something ?
> This is how my code looks like:
>
> reportDocument = new MyCustomReport( )
> reportDocument. SetDataSource(m yLoadedDataset)
> ReportViewerCon trol.ReportSour ce = reportDocument
>
> Thanks
>
> TJ!
>
>
>
>[/color]
Jun 14 '06 #8

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

Similar topics

1
7330
by: Kevin | last post by:
I'm at the end of my rope. We have been trying to deploy Crystal Reports over our website. We have tried every report configuration we can think of and cannot seem to resolve this issue. Here is the problem. We keep getting prompted for a database login when we try to view reports that connect to our SQL Server database. We have tried using every combination of connection strings and methods, all with the login information saved. We...
0
1173
by: Johno | last post by:
Some users of my ASP app keep getting a login dialog for no apparent reason when they first use the application. They're using Internet Explorer clients and the web site's access control is set to NTLM authentication. I've set read access onthe server directory containing the ASP pages to the group. Is there something I'm missing or is this a known issue perhaps caused by a recent security patch? TIA Johno
0
1148
by: lilush | last post by:
Hello, I use vsnet 2002 and i use an access database. i have created a few reports and on the computer with the vs it all works but when i put it on a different computer when the report is loading it asks me to log in to the database and i dont know what to write because i am new to all of this. i dont know what to write in the server name i know the database name but should i add the path to it there is no password on the database so i...
0
927
by: Oldhandandy | last post by:
I’m using the ReportViewer to call in an external Crystal Report using the syntax: Crystalreportviewer1.reportsource = “s:\.......\????.rpt” The report extracts the data from a SQL Stored Procedure. The reason I’m using a SP is because the VB program passes a start and end date to it. I’ve tried various connections such as OLE and ODBC, each time I get the Database Login screen.
0
2877
by: Martin Dalek | last post by:
Hi all, I'm trying create dynamic reports by Crystal Reports engine distributed with VS.NET. I know there is only lite version without native support to do this, but I've found another way via using CRAXDDRT20 library (Crystal Reports ..NET ActiveX Designer Design and Runtime library). But I've problem with adding table by passing ADO recordset: loCRGenerator = new CRAXDDRT20.ApplicationClass();
2
2450
by: Chris Ashley | last post by:
I have a crystal report using a Dataset which is populated at Runtime. It works fine on my development machine, but when I deploy it to a test machine I get a 'Database Login' box. There shouldn't be a need for it to connect to any database because the dataset is populated with everything I need and passed to the report using SetDataSource... I'm using all the correct merge modules (Database_access2003, Managed2003, regwiz2003, CRT71 and...
1
2884
by: estanton | last post by:
I am updating a C# Windows Application that has two reports created with Crystal Reports in VS 2005. The two exisitng reports work correctly with no problems. However, I have created a third report (this is the first one I have created from scratch) and when I run it either with the debugger or in the production version, I get a Database Login screen dialog box with the Server Name and Database fields protected and already populated with...
0
1363
by: shwethatj | last post by:
Can anyone please help me..... In Crystal Reports , how to access data using PULL method .. I have got a table in server explorer which has 3 got fields. But i dont know how to access it and generate a report. Actually i have first selected ASP.NET website with c# language , then i added a crystal report using add item in solution explorer . Later i had setup a new data connection in server explorer. The new connection has got a database...
2
1822
daniel aristidou
by: daniel aristidou | last post by:
Hi guys, its been a while. Ive finally got crystal reports for visual basic studio 2008, and i keep getting problem after problem using it. At first i coneected to an access databse(unsecure) to produce reports. This worked fine while viewing the report in the design viewer however when i ran the aplication it asked for login details, and i could not get past that. Now i have moved on to sql databases also unsecure. Now there are no...
0
10148
Oralloy
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...
0
10002
jinu1996
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...
1
9938
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,...
0
9823
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 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...
0
5270
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...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
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...

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.