cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report - SP 30 (v 13.0.4000) side by side with CR 2011 (13.0.12.1494)?

khurramishaque
Explorer
0 Kudos

Hello,

I am developing a winforms application in visual studio 2019 and 2015, which will be deployed onto a client machine running Windows server 2008 R2.

Crystal reports 2011 is already deployed there.

EDIT: I need to deploy application built with SP 30 (x64 bit) to Win Server 2008 R2 side by side with runtime version 13.0.12.1494 (win32_x86) .

(Not an option now): Can I use the same CR 2011 version with VS 2015, on windows server 2019.

OR

(EDIT: Need like this) Can I install some newer CR version on server 2019 and install related runtime on client machine (server 2008) ?

NOTE: I cannot uninstall CR 2011 from client machine, as they are running other application reports on it.

I have deployed the winforms application with CrystalReports Dlls from VS 2019 (Win server 2019) to client system (Win server 2008 R2), and x64 bit runtime installed side by side to version 13.0.12.1494 (win32_x86).

As I run report from my application, it is giving following error:

CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The document has not been opened.

at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.get_ReportAppServer()

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ReportAppServer()

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

--- End of inner exception stack trace ---

Many Thanks.

former_member763929
Participant

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with Community Q&A , as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your Profile you encourage readers to respond.

khurramishaque
Explorer
0 Kudos

@Daniil Horbach,

Thank you very much. I have updated my profile picture and my question too.

Accepted Solutions (1)

Accepted Solutions (1)

On the download WIKI:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Link how to upgrade the runtime to SP 31 for their application:

2719939 - Crystal Reports for Visual Studio Runtime versioning - side by side ability - what to do with WinFormCRViewer.zip from download WIKI

Follow the KBA and then it should work for the older applications. It doesn't allow your app to run using the older version.

Answers (1)

Answers (1)

DellSC
Active Contributor

Yes, all of those versions will work together, although Crystal 2011 is old and out of support. However, for your application you will need to use the Crystal for Visual Studio SDK. You can find out more about it at in the wiki here: https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

This page includes link to download both the integration with VS (.exe from the download options) and the various types of runtime installs for use when deploying your application, as well as links to sample code, licensing information, etc. Note that you cannot just copy over the assemblies from the SDK when you install your application, you MUST install one of the runtimes because there are many dependencies and registry settings are created during the runtime install.

-Dell

khurramishaque
Explorer
0 Kudos

Many thanks..

I have updated my question with the error coming up now. Kindly suggest what to do to resolve this error.

Thanks again.

DellSC
Active Contributor
0 Kudos

I would need to see the code around where this is happening in order to be able to answer this question.

-Dell

khurramishaque
Explorer
0 Kudos
Printing.xPassMarksheetPrintingReport objReport = new Printing.xPassMarksheetPrintingReport();
objReport.SetDataSource(ds);
objReport.Refresh();
crystalReportViewer1.ReportSource = objReport;
crystalReportViewer1.RefreshReport();<br>

dell.stinnett-christy

xPassMarksheetPrintingReport is the rpt.

ds is the DataSet.

DellSC
Active Contributor
0 Kudos

Which line is the error occurring on? Also, Don has posted sample code for printing reports. You can find it here:

Printing Crystal Reports in .NET

-Dell

khurramishaque
Explorer
0 Kudos

dell.stinnett-christy , I am replying to the comments late due to time difference.

The error is coming at objReport.SetDataSource(ds);

You don't need .Refresh, the viewer will refresh with the new DS.

Calling Refresh() can remove the updated info.