Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I am having a problem with my Windows Form project in VS2010 regarding
the SAP Crystal Reports for VS2010.

When I deploy my project on client's PC it shows a login dialog box.
The client's PC is in XP.
I already installed the correct runtime in their PC.
When the login dialog box appear and the cancel button is clicked,
the Report shows correctly.

But our client did not want to always see the login dialog box.

I already try to fix it like this:
• Add connection and login info in the codes (CrystalDecisions.Shared.ConnectionInfo)
• Verify and reconnect the database
• Reinstall the runtime of Crystal Report(CRRuntime_32bit_13_0_1.msi)

But nothing works.

I am using an XML schema in designing the report.
I do not directly connect to a database so the Database is not really an issue.
Like this:
CrystalReport.SetDataSource(DataSet);


The framework I use is C#.Net 3.5.
My project is in Windows Form.
My Crystal Report for VS2010 version is 13.0.1

I already googled it but nothing works.

Please help me.
Thanks in advance.
Posted
Updated 31-Jul-11 21:38pm
v6

1 solution

Make sure you put your code
CrystalReport.SetDataSource(DataSet);

in Form Class Constructor after the InitializeComponent method.
 
Share this answer
 
Comments
unknowndentified10111 1-Aug-11 5:43am    
It works! Thank you very much. I am waiting for a day for an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900