Click here to Skip to main content
15,891,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
when i was run my source code at that time crystal report show me the data and work fine but when i create exe of my project and run exe at that time crystal report does not work..
pleas help me.

Thank You..
Posted
Updated 22-Mar-12 20:03pm
v2
Comments
Oshtri Deka 23-Mar-12 5:47am    
Give us exception text.

Where do you placed the report? Check for the report source path availability while running that exe.

C#
crystalReportViewer1.ReportSource = @"..\Reports\salesReport.rpt";


If you mentioned any reportsource path check for that availability.

See this sample:
Creating Crystal Reports using C# with Datasets[^]
 
Share this answer
 
v2
You can gather more info by putting a try-Catch block around your report generation logic and log every exception, in that way you'll know where its going wrong, whether you missing a dependency or its just the environment.
 
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