Solved

Crystal reports with c# 2010 winforms

Posted on 2013-01-25
11
1,512 Views
Last Modified: 2013-01-30
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
0
Comment
Question by:cycledude
  • 7
  • 4
11 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38818998
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
 

Author Comment

by:cycledude
ID: 38819028
but thats what I don't have... the crystal reports viewer IS NOT in my toolbox... how do I get it in there.
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 500 total points
ID: 38819039
check the references of your project first to ensure CR is there.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:cycledude
ID: 38819086
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
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 500 total points
ID: 38819221
you are missing crystaldecisions.windows.forms to get the viewer
0
 

Author Comment

by:cycledude
ID: 38819233
yeah I see that.. how do I add it?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38819246
select "add reference" from the project menu
0
 

Author Comment

by:cycledude
ID: 38821606
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
 

Author Comment

by:cycledude
ID: 38821609
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
 

Accepted Solution

by:
cycledude earned 0 total points
ID: 38821619
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
 

Author Closing Comment

by:cycledude
ID: 38834594
Thanks for the assist. got there in the end ;o)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Video Player 12 27
Dynamics CRM Plugin Query TotalRecordCount returning -1 13 43
Dates formatted Differently on another pc 2 15
C# Linq Select From List 3 10
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question