Click here to Skip to main content
15,890,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use vs2010 and downloaded SAP Crystal Reports for vs2010 and installed it. Now I can add a Crystal reports file to project but the Crystal reports viewer is inactive and do not be shown in toolbox. What is wrong with it? is there any extra configuration in VS? Can I use VS default reportviewer instead of crystalreportviewr?
Posted

Well, I said in question that I installed SAP Crystal Reports for VS2010 and I can add a .rpt file to project; So why I should download Crystal viewr? that's not a good solution.
But I solve it just by following two steps:
1) In project Properties window in the Application tab changed the Target Framework from ".Net Framework 4.0 client profile" to ".Net Framework 4.0"
2) Added the CrystalDecisions.Windows.Forms reference to project
(in solution explorer right click in Reference folder and choose "Add Reference" --> for newbies such me)

Now I can add a crystalreportviewer to my project because after these two steps it appears in toolbox.
Without step 1 we can't do step 2 because When we want to add a Reference to project, the VS2010 filter the references and just show Target Framework references and allow to add them. CrystalDecisions.Windows.Forms is a part of ".Net Framework 4.0" not ".Net Framework 4.0 client profile"
It's so confusing...
 
Share this answer
 
v2
Comments
Brinda Arumugam 4-Oct-13 5:31am    
Thanks :) Its Working .. i got in toolbox without did 2nd option
Have a look at this discussion: Discussion on similar issue[^]
This link/blog[^] explains all the necessary details.

This is because Microsoft decided not to include Crystal in their VS 2010. Though, it is still available, and for free.

Download from here: Crystal Viewer download[^]
 
Share this answer
 
v3

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