Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Crystal Report Viewer fails to open when added to Windows Form

Posted on 2008-09-29
8
538 Views
Last Modified: 2013-12-17
I am writing an app in C# that includes a Crystal Report.
When I attempt to add the CR viewer to a blank form from the tool bar it fails to open on the form.
I have VS 2008 with CR for Visual Studio installed as well as CR 2008.

The Crystal Report Viewer had been functioning correctly up until 3 days ago.

Any ideas as to what may be causing this and how to correct it?
0
Comment
Question by:petrosyg
  • 4
  • 2
  • 2
8 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22604651
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22605867
What CRViewer are you adding?

mlmcc
0
 

Author Comment

by:petrosyg
ID: 22609069
I was using the default version 10 viewer that comes with CR for VS 2008...thats the one that stopped working.
I then added the v 12 viewer that installs with CR 2008, but it doesnt work either.

When I add a viewer from the toolbar an instance is added to the form, but it does not actually appear on the windows form in design view or after the app is build and run.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22611960
wondering if you had checked the link. You may have problem, if there are multiple versions of CR Viewer control.
try uninstalling..and then use the default one supported by VS.
0
 

Author Comment

by:petrosyg
ID: 22612225
I have already tried that.
First I repaired VS...Disn't work so then I uninstalled CR 2008..Disn't work so then uninstalled VS 2008.
Then I reinstalled VS 2008 and applied the VS 2008 SP1 and SP for .NET 3.5 (which is where VS had been when it was working).
When that didn't work I reinstalled CR 2008. That didn't work and that was the point at which I removed crystal report viewer 10 and enabled CR viewer 12 on the toolbar. Still no luck.

Im going to try to try and back the app down to .NET 2.0 and see if that helps.
0
 

Author Comment

by:petrosyg
ID: 22612361
No good.
I am going to uninstall CR 2008 again, uninstall all of VS 2008, manually remove any pieces of either that the uninstaller leaves, run a registry cleaner to remove what I've missed and reinstall VS 2008.

With any luck I should be exactly where I started.
0
 

Accepted Solution

by:
petrosyg earned 0 total points
ID: 22620077
I feel like a complete bonehead for not catching this earlier.
The problem was in my applications Crystal References.
There is a setting in each reference called "Specific Version" and they were all set to True.
When I changed them all to False VS went and found the correct dll references and the Crystal Report Viewer control started working again.

Thanks to all who tried to help me. I just wish I had caught the issue before I dragged it in here.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22620155
Good catch.  I haven't used those versions or VS so I was unaware of the option.

mlmcc
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

765 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