Solved

Crystal Report Viewer fails to open when added to Windows Form

Posted on 2008-09-29
8
535 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
Comment Utility
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
What CRViewer are you adding?

mlmcc
0
 

Author Comment

by:petrosyg
Comment Utility
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
 
LVL 13

Expert Comment

by:SameerJagdale
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:petrosyg
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Good catch.  I haven't used those versions or VS so I was unaware of the option.

mlmcc
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now