Link to home
Start Free TrialLog in
Avatar of Saliba
SalibaFlag for Malta

asked on

Crystal Reports 11 and VS2005

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 ?

Avatar of Mike McCracken
Mike McCracken

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
Avatar of Saliba

ASKER

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.
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
Avatar of Saliba

ASKER

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.
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.
Avatar of Saliba

ASKER

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
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
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
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
Avatar of Saliba

ASKER

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
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.
There shouldn't be anything special with Crystal.

Which edition of VS2005 do you have?

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of Saliba
Saliba
Flag of Malta image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial