Click here to Skip to main content
14,920,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using crystal report in my wpf app for showing reports.its all working fine.but after creating exe when i am going to show reports using APP shortcut(which is created when i install exe) its giving me error like below

{"Load report failed."}

Inner exception is
{"Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack."}

but when i am showing report using primary output of my exe. its showing me reports.
i am not able to understand the problem.
Please tell me what is problem
Sinisa Hajnal 2-Feb-15 6:03am
Any parameters which the link doesn't pass to the application? Create your own shortcut manually and test it. Check the attributes of the created shortcut, see that it doesn't point to older version of the app (if there is one).

You will need to modify two properties in the .rpt files:

Build Action is set to "Embedded Resource" by default. Change it to "Content".
Copy to Output is set to "Do not copy" by default. Change it to "Copy always".
Rebuild, Build deployment package and Publish. Done!

i faced similar kind of situation while working and even after doing the changes from solution1 above , i realized a stupid mistake a very annoying one though.
check the path you're calling the crystal report from, and use the "\" till the end of the path if its being passed dynamically.

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