Solved

Crystal Report Viewer fails to open when added to Windows Form

Posted on 2008-09-29
8
537 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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