Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
hello ...
I have simple problem related with crystal report. Basically I'm creating Report file and set path dynamically as like :
<b>
 ReportDocument rpt = new ReportDocument();

 rpt.Load("rptFile.rpt"); </b>

I created it in c# windows application.
It is running Well.

I got problem When I create setup and nstall on client side...
When I Run same code after Install it. It gives exception Load report Failed..
I thought it is path problem but I checked no file are Exist after installing project.It is Converting into Assemblies.
So No file Exist that why its giving Exceptions.
I did add merge Module of crystal report but same problem persists.

So if U have Any Idea How to Work and How to install it, Please help me..
Posted

1 solution

In setup project you add those file to your setup folder. then it will install to the your client PC then your problem will solve. or else you can check by copy and past those file to your client PC application directory.

I hope this will help u...
 
Share this answer
 
Comments
shishir26 3-Apr-12 8:56am    
It is a Trick .
But technically not good.
I dont think It will run.
shishir26 3-Apr-12 9:30am    
No Just minute

Its working....
Thanks "Thilina Chandima"
shishir26 3-Apr-12 9:31am    
:-)
Thilina Chandima 3-Apr-12 11:39am    
You are welcome. actually it is not a trick. if you going to load report from file you need to put .rpt file physically on that PC.

anyway you problem is now solve.

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