Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Crystal Reports Dynamically in C#
Message
From
06/02/2005 20:12:37
 
 
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
00984137
Message ID:
00984342
Views:
21
Hi Kevin,

Thanks for replying.

I tried the code that you gave

ReportDocument oReport = new ReportDocument();
oReport.Load(cFileName);
myForm.CrystalViewer.ReportSource = oReport;

But when the viewer is loaded it prompts me for a server, login and password.
I added this code and it worked fine

oReport.SetDatabaseLogon("user","password");

But when I tried to change the added code into this code below to specify my Server and Database, it again asks for Username and password.

oReport.SetDatabaseLogon("user","password","server","dbase");

I know Im missing something with it but I just can't figure it out...

I want to specify the server and the database where the data resides.
I did not expect that there are typed and untyped crystal reports. Can you give me a simple walkthrough? I don't want my reports.rpt files be binded on the dll because I want the users to have freedom to modify these reports.

Thanks in advance...
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Previous
Reply
Map
View

Click here to load this message in the networking platform