Solved

Crystal Reports and Visual Studio 2010

Posted on 2013-01-07
3
720 Views
Last Modified: 2013-01-13
Currently, I am upgrading a project from vs2008 to vs2010 and am having a problem with the Crystal Reports add-in. I have downloaded and installed the CR for vs2010 add in, however, it no longer contains a reference that I was using: CrystalDecisions.Shared.

I was using this for three methods:
OpenReportMethod
ParameterValues
ParameterDiscreteValue


Does anyone know what replaced this in the 2010 version or how to access CrystalDecisions.Shared in vs2010? Any suggestions are welcome.

Here is the block of code that I am working with:
' create a new temporary copy of the selected report
                    CR.Load(RptPath, OpenReportMethod.OpenReportByTempCopy)

                    ' Declare SchoolNumber parameter variable
                    Dim prSchoolNumber As ParameterValues = New ParameterValues
                    Dim prSchoolNumberDisVal As ParameterDiscreteValue = New ParameterDiscreteValue ' ParameterDiscreteValue
                    'Set the SSN entered as the discrete value
                    prSchoolNumberDisVal.Value = Me.fSchool.Text
                    prSchoolNumber.Add(prSchoolNumberDisVal)
                    CR.DataDefinition.ParameterFields("@SchoolNumber").ApplyCurrentValues(prSchoolNumber)

As a note, I did attempt to change my target framework, however am missing the option to do so, unless I am blind. Please see the attached screenshot.

Thank you.
vs2010.jpg
0
Comment
Question by:jbeese
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Crashman
ID: 38752865
thats sounds weird

I use VS2010 and the reference exist.

<Reference Include="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" />

in the proyect

Imports CrystalDecisions.Shared
reference 2reference 1
0
 
LVL 1

Accepted Solution

by:
jbeese earned 0 total points
ID: 38755721
I found the issue I was having. I read on another website that the issue was with the target framework being set to .Net Framework 4 Client Profile when it should just be .Net Framework 4. However, it also said that the option to change this was in the application tab of the project properties (where it was not). After more research, I found that the option to change the target framework now resides in project properties > Compile > Advanced Compile Options. Once I changed my target framework, I was able to include the missing reference and my errors disappeared.
0
 
LVL 1

Author Closing Comment

by:jbeese
ID: 38771601
Fixed my problem.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

705 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