Link to home
Start Free TrialLog in
Avatar of g_johnson
g_johnsonFlag for United States of America

asked on

Visual Studio 2010, Crsytal Reports

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 (https://www.experts-exchange.com/questions/27996260/Using-Crystal-Reports-in-VS2010-C.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!
ASKER CERTIFIED SOLUTION
Avatar of vasto
vasto
Flag of United States of America 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
Avatar of g_johnson

ASKER

User generated imageThe 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?
Avatar of Mike McCracken
Mike McCracken

It should be on the page you downloaded Crystal for VS2010 from.

mlmcc
My client has not yet reported back to me if any of this did any good.
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.