Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio 2010, Crsytal Reports

Posted on 2013-01-29
6
Medium Priority
?
332 Views
Last Modified: 2013-02-04
I have moved from VS2008 to VS2010 and am slowly upgrading my projects.  My development machine is Win7 64-bit.

Some of my applications make use of Crystal Reports, and I have a reference to CrystalDecisions.CrystalReports.Engine for code like this:

                    //show in Crystal
                    fReport f = new fReport();

                    ReportDocument rpt = new ReportDocument();
                    rpt.Load(this._ReportPath);
                    rpt.SetParameterValue(0, this._SessionId);
                    f.crvMain.ReportSource = rpt;

                    f.ShowDialog();

                    if (MessageBox.Show(this, "Mark as Printed?", "Door Tags", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        this.MarkOrders(dc);
                    }

With help from this forum (http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27996260.html) I was able to get this working.

I have recompiled and deployed several projects without issue.

Today, though, the code above is throwing an error on a client machine: Could not load file or assembly ... and it refers to version 13.0.2000.0 (which I thought was the VS2008 runtime)

Do I need to have them install the VS2010 runtime components?  Do I need to change the target framework to .Net 4.0?  Since the client is on a 32-bit machine, do I need to change the compile from "Any CPU" to 32-bit?

I'm also having trouble finding the VS2010 runtime components, if they exist.  Everything I am finding is over two years old.

Any help is much appreciated!
0
Comment
Question by:g_johnson
[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
  • 3
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 2000 total points
ID: 38831858
Version 13 is Crystal Reports for VS2010. May be somebody uninstalled the runtimes and that s why you are receiving this error. Another possible reason is if your user installed a service pack for ver 13- then the runtimes will be upgraded and your applications might not be able to load them. Before to install anything check if they have "SAP Crystal Reports runtime engine for .NET Framework 4"

Target framework should be 4.

Depending of what you are using as refference you might need to change Any CPU settings. Can you post a screenshot with your references ?
0
 
LVL 4

Author Comment

by:g_johnson
ID: 38831912
ReferencesThe reference to SettingsClassDLLXML is to a proprietary object (target framework 3.5).

If I am understanding you correctly, we should first check for the  CR runtime engine for .Net Framework 4, and I should change my target framework to be 4.0.

If they are missing the runtime engine, we should install it.

Is that correct?

Do you have a link to the runtime engine?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 38833699
It should be on the page you downloaded Crystal for VS2010 from.

mlmcc
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Expert Comment

by:vasto
ID: 38833860
0
 
LVL 4

Author Comment

by:g_johnson
ID: 38851229
My client has not yet reported back to me if any of this did any good.
0
 
LVL 4

Author Closing Comment

by:g_johnson
ID: 38852731
I can't say exactly why this worked, but the 32-bit msi did the trick without having to change the Target framework to 4.  Previously, all we had installed was the runtime for Visual Studio 2008.  Thanks for the help.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

670 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