Solved

Crystal Reports 11 and VS2005

Posted on 2009-07-08
13
511 Views
Last Modified: 2012-06-21
I have VS2005 on my computer and a number of applications that use Crystal Reports engine all using crystal assemblies that come with VS2005 that is 10.2.3600.0.  Now I need to develop some reports iusing Crystal 11 develop[er edition R1 for another system and I am afraid to install Crystall 11 R1 developer on my machine in case it updates anything related to VS2005.
I would like to know if anybody ever tried this, my concern is that  VS2005 projects automatically add referecnes to the GAC area as regards crystal assemblies, in particular the framework and infostore whciha re not found anywhere. I need to make sure that altough I will have Crystal Developer Edition 11 R1 on my machine VS2005 keep using the original assemblies, any idea about this ?

0
Comment
Question by:Saliba
  • 5
  • 5
  • 3
13 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 24810269
First of all to use Crystal XI with VS2005 you need Release 2 and the developer edition.
Check this link for confirmation
http://kenhamady.com/cru/?s=CR+XI+and+Visual+Studio

You can download the free trial of CR XI from this site and when you install it use the key code from your CR XI R1 cds.
http://www.sap.com/usa/solutions/sapbusinessobjects/sme/freetrials/index.epx

Since it will install in different directories it shouldn't upset the VS version.

mlmcc
0
 

Author Comment

by:Saliba
ID: 24811573
I know about Relese 2 but I would not like to use it yet. When I tried on a test computer I found that VS2005 will create references to the GAC infostore and Framework for version 11 when I select Crystal Project but else it references Ver 10. I need to understand why the refernce to version 11 only wiht Crystal Projects.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24814773
Release 1 doesn't work in VS2005 and the .Net 2.0 environment.  Release 2 was issued to make CR XI compatible with VS2005 and .Net 2.0.

I don't use VS so I don't know why you get that.  I suspect it may be that in a standard VS project it automatically references the built in version of Crystal which is based on CR10.  You may need to build a Crystal project to use the stand-alone versions of Crystal with VS.

mlmcc
0
 

Author Comment

by:Saliba
ID: 25085854
In general my question is regarding the GAC, as expalined I need Crystal 11 for a customer who needs specific reports in Crystal 11 but then I do not need Crystal 11. My problem is that when Ii install Crystal 11 and try to do a report project in VS2005 it will automatically add referecnces to Crystall 11 GAC files which I do not want but I need the Crystall Framework and infostore 10.2.3600 instead. My issue is how I replace these references back to 10.2.3600.
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 25089675
In Visual Studio you would open the project --> references; delete the references to Crystall 11; add the DLL references for 10.2.3600.  As long as you compile with the correct version you should be fine from my understanding as you can have DLLs of differing versions side-by-side in GAC with no issues.  Have done this with the Office Interop DLLs.
0
 

Author Comment

by:Saliba
ID: 25092559
How do you add teh reference to 10.2.3600 from GAC, this basically the question there is not way of accessing the GAC file, at least I cannot find a way from add eferences
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 100

Expert Comment

by:mlmcc
ID: 25092915
I don't belieev you do it that way.

On your development machine
Open the project
Click PROJECT --> REFERENCES
Delete the references to CR XI
Add the references for VS2005 Crystal

WHen you install the new project it will add the files to the GAC.

mlmcc
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 25093187
Thanks, mlmcc.

That is what I was trying to say, but obviously didn't lay it out clearly.  Hopefully that makes sense now, Saliba, so give it a try and post back.  Guess the issue would be if you removed the 10.2.3600 files from your system and have no way of referencing anymore.  If that is the case, you can try to grab the DLLs from another machine that has 10.2.3600 installed and copy unto your machine.  Then follow the process above to add in your project references.  

mwvisa1
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 25093392
Thanks mwvisa for jumping in.  I haven't used the .Net development environment.  That was how to do it in VB6 but I figured there were changes in how includes and referneces were added.

mlmcc
0
 

Author Comment

by:Saliba
ID: 25095527
My problem is that I can see the Files infostore and Framework  in the GAC for both versions but adding a reference for VS2005 Crystal, in paticualr the infostore and framewotk will require a reference to a file not to the GAC and I do not know where are the dlls for the infostore and framework they are always referenced from the GAC so I do not have a clue were the actual files are apart form the GAC. I found many ways to get to the files in the GAC but I think that most of them are hacking which I do not like to do. So in summary where are the infostore and frewaork files that allow me to add reference it seems I cannot do this directly from the GAC
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 25095733
The GAC is used to "cache" global assemblies (hence the name) for running your application with CLR; however, at development time, which is what you are dealing with here you have to add the reference files you need in your project.  You can have different files in the bin directory of all your projects -- don't need to only have one in GAC.  When you follow the steps laid out, you should see the Crytal DLLs listed while adding reference.  If not, you can do a search on file system for the files and then when in the add reference dialog do a browse and select the files to add in that way.  Unless I am missing something you should be fine.  Maybe there is something specific with Crystal I am not thinking about right now, but I will defer to mlmcc on that.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 25098389
There shouldn't be anything special with Crystal.

Which edition of VS2005 do you have?

mlmcc
0
 

Accepted Solution

by:
Saliba earned 0 total points
ID: 25104437
I am using VS2005 Professional, the files I tried to find the DLLs but could not find them these are CrystalDecisions.Enterprise.Framework.dll and CrystalDecisions.Enterprise.InfoStore.dll, in the GAC there are two version one 10.2.3600 and teh version 11. I did a search for these files and it seems that they exist only in the GAC. I found a workaround as follows:-

Unregistered shfusion.dll
   regsvr32 -u C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll
found the files for version 10.2.3600 in the GAC and copied them to a folder
Registered back shfusion.dll with
   regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll            
removed references to ver 11 files
add references to the copied files instead of those in the GAC.

This is a workaround, I was trying to stay away from unregistering and registering of shfusion but it seems that there is not other alternative. I appreciate if I am guided to a better way but I could not trace the file required in any folder except the GAC.
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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

22 Experts available now in Live!

Get 1:1 Help Now