?
Solved

Crystal Report Viewer fails to open when added to Windows Form

Posted on 2008-09-29
8
Medium Priority
?
564 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 101

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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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 101

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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

850 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