Click here to Skip to main content
16,017,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I create crystal report for my website with asp.net,c# and sql2005

but when I want run my report, I should type some info about DB and server and....

I fill them, but back to that page

Why ? PLEASE HELP ME......

In my code, i wrote:
C#
ReportDocument report = new ReportDocument();
report.Load(Server.MapPath("SampleRpt.rpt"));
report.SetDatabaseLogon("venus-PC\venus", "1", @".", "TEST");
rptviewer.ReportSource = report;
Posted
v2
Comments
Sandeep Mewara 20-Jul-12 2:28am    
You say you have set the login parameters in code, yet it asks?
veusk 20-Jul-12 2:47am    
only when I drag tableadapter into dataset I set connections.do I do setthem in code?

1 solution

 
Share this 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