Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have developed windows application in vs c#.net 3.5.my application have crystal reports also.in client system my application did not run because of crystal reports load failed.so pls help me.
Posted

1 solution

please check path you have given of crystal report
and do as following it might help you
copy your rpt files from your project and make one folder of name rpt in client pc on c drive and do followingin app.config file
<add key ="rptpath" value ="C:\\rpt"/>;

and do on form on which you are showing report
rptpath = ConfigurationManager.AppSettings["rptpath"] + "\\" +"your report.rpt";
   obj.Load(rptpath)

before doing all above things right click on crystal report from solution explorer and and set property copy to output directory to copy always
 
Share this answer
 
v3
Comments
RaviRanjanKr 16-Feb-11 4:51am    
please don't wrap normal sentence in "pre" tag.
Venkateswara Rao Reddipalli 16-Feb-11 7:25am    
thank u

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