cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports XI with VS2010

former_member1261230
Participant
0 Kudos

Hi,

I have designed a reporting Crystal Report XI as normal. I have then come to do the coding to print the report in Visual Studio and I can only find DotNet version 2.0 of the dlls I require. How do I get it to work for DotNet 4.0?

Many Thanks,

Roger

Accepted Solutions (1)

Accepted Solutions (1)

former_member1261230
Participant
0 Kudos

Hi Don,

Does it matter that my report was written in Crystal Report XI SP2? I am using version the crystal reports 13 for vs2010 to get it to run on my development PC and using the 32 bit CRRuntime_13_0.msm.

Regards,

Roger

former_member183750
Active Contributor
0 Kudos

The version the report was created is of no consequence. The fact that you are using the original release of CRVS may be though. E.g.; update your install and all runtime deployments to CRVS SP 13(!):

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

former_member1261230
Participant
0 Kudos

Hi Ludek,

Thank you for getting back to me. I have already installed from the link the latest CRVS. I clicked on the Support Pack 12 and installed from EXE. I could then see in my toolbar under reporting the crystal controls. I dropped it on to my project and it added the necessary dlls. If I do my install on the 32bit machine it works great but when I try and install on our 64bit server the install works be when I try to print I get an error mentioned above.

Regards,

Roger

former_member1261230
Participant
0 Kudos

Hi,

I have more information. Like I said I managed to get it working on a clients PC and then I tried another PC and now I get the same error as on the server. Both are 32bit computers / OS so I really don't know what is going.

Kind Regards,

Roger

former_member183750
Active Contributor
0 Kudos

See if comparing the runtime between computers that work and don't work will give you a clue. The Modules utility is really great for that.

Check the CR runtime as well as the VC++ rumtime.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

0 Kudos

Hi Roger,

In your Project Properties set the build to be x86, do not use AnyCPU, the installer detects the OS supports 64 bit so it tries to deploy and expects you to install the 64 bit runtime. But since it's compiled in 32 bit mode it fails.

Don

Answers (2)

Answers (2)

former_member1261230
Participant
0 Kudos

I think I am making head way now but I am still confused. I have Crystal Reports XI developer version which I have used to create my report. Which files from this link http://scn.sap.com/docs/DOC-7824 do I need in order to add the relevant dlls (which are?). I am finding all this very confusing and frustrating. At this rate it is going to take me long to create the installer than the actual project.

Many thanks for any help,

Roger

0 Kudos

Hi Roger,

The first one is to integrate into Visual Studio 2010, 2012 or 2013:

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_12.exe

The other ones are for redistribution of the runtime only, don't install them on your DEV PC.

Easiest one to use is the MSI, just run it or include it in your install package.

Check with MS on MDSN on how to create a Deployment package using a third party MSI.

As for licensing there is a link on the home page also on licensing CR for runtime.

Don

former_member1261230
Participant
0 Kudos

Hi Don,

I have installed the suggest files and on my development PC everything works fine. I added to my setup the CRRuntime_13_0.msm file and it installs okay on the server but when I run my application and try and view the report I get an error 'The type initializer for CrystalDecisions.CrystalReprots.Engine.CRPE' threw and exception. This is the full error message:-

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an exception. ---> CrystalDecisions.Shared.CrystalReportsException: Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll.
   at CrystalDecisions.CrystalReports.Engine.CRPE..cctor()
   --- End of inner exception stack trace ---
   at CrystalDecisions.CrystalReports.Engine.CRPE.CloseCrpe()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean bSetupForNextReport)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
   at CertGenerator.frmMain.ExportCertificate()
   at CertGenerator.frmMain.butExportPDF_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CertGenerator
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Holchem/Certificate%20Generator/CertGenerator.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 11.0.50938.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d5...
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System...
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e0...
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/Sys...
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34245 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c56193...
----------------------------------------
CrystalDecisions.CrystalReports.Engine
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521...
----------------------------------------
CrystalDecisions.Shared
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDe...
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea...
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a...
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System....
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea...
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692f...
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692f...
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__69...
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.D...
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fb...
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0_...
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34237 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.We...
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///C:/Windows/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/log4net.dll
----------------------------------------
CrystalDecisions.Shared.resources
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/13.0.2000.0_en_692fbea5521e13...
----------------------------------------
CrystalDecisions.CrystalReports.Engine.resources
    Assembly Version: 13.0.2000.0
    Win32 Version: 13.0.0.99
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/13.0.2000.0_en...
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/...
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d...
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/Sy...
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Many Thanks for your help,

Roger

0 Kudos

Hi Roger,

Moved your post to the SDK forums.

Click on the Overview tab and you'll see a link to get to the CR for VS download page.

Use the first link to integrate into VS Pro or above, Express versions do not support Plug-ins. And DO NOT just install the redist packages or install them on your DEV PC, not required.

Don

former_member1261230
Participant
0 Kudos

Thanks Don.

I don't seem to be able to see the Overview tab on this page or is it on the home page?

Also can you tell me is it okay to install my application which print's a report on one of our servers and then create a remote desktop file for it for others to connect to? I was just a bit worried about licence issues.

Many Thanks,

Roger