Crystal reports with c# 2010 winforms

Hi

I have just installed crystal reports for my visual studio 2010 professional installation.  The install seemed to go ok,  but I have a problem adding the report to my application.

If I start a new project, and select 'crystal reports application' I can go through the wizard, connect to the data source and it displays a report at the end, very nice.

However, from my application I am having problems... I can add a crystal report to the application, but I cannot add a crystal report viewer.  I cannot select a 'crystal reports viewer' from the toolbox... odd.  

So how do I get the crystal reports viewer to appear in the toolbox on my application, like it does in the 'crystal reports application'?

Thanks

CD
cycledudeAsked:
Who is Participating?
 
cycledudeConnect With a Mentor Author Commented:
figured it out...


went into project properties, and changed the 'target framework' from '.net 4 client profile' to '.net 4 framework'

I now have the crystal reports viewer available

wonderbra!
0
 
Éric MoreauSenior .Net ConsultantCommented:
as you can read in "Testing your report" from http://emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx:

"You first need to add a viewer to the main application. From your toolbox, find the Crystal Reports tab, select the CrystalReportViewer (see figure 6) and place one on your form."
0
 
cycledudeAuthor Commented:
but thats what I don't have... the crystal reports viewer IS NOT in my toolbox... how do I get it in there.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
check the references of your project first to ensure CR is there.
0
 
cycledudeAuthor Commented:
here is a screen shot of the references in the 'crystal reports application'

file 1
and here is what I see on a 'standard' winforms app where I have included a 'crystal report'

file 2
0
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
you are missing crystaldecisions.windows.forms to get the viewer
0
 
cycledudeAuthor Commented:
yeah I see that.. how do I add it?
0
 
Éric MoreauSenior .Net ConsultantCommented:
select "add reference" from the project menu
0
 
cycledudeAuthor Commented:
hi

I have tried that, but none of the references are clearly named as being report viewer...

here is what I see when I try to add reference..

list of available references
0
 
cycledudeAuthor Commented:
interestingly, when I check the available references from the 'crystal_reports_demo' application I get more.... how can this be?

a list of references in the crystal_reports_demo
0
 
cycledudeAuthor Commented:
Thanks for the assist. got there in the end ;o)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.