on 12-03-2021 5:58 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Which line is the error occurring on? Also, Don has posted sample code for printing reports. You can find it here:
-Dell
You don't need .Refresh, the viewer will refresh with the new DS.
Calling Refresh() can remove the updated info.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.