Hi I have developed windows app using c# to load the crystal reports dynamically from the code. In my development machine Crystal reports versions "10.5.3700.0" and "11.0.3300.0" installed. While building the app, by default 10.5.3700.0 version selected to my project while selecting the references of (CrystalDecisions.CrystalReports.Engine.dll,CrystalDecisions.ReportSource.dll,CrystalDecisions.Shared.dll,CrystalDecisions.Web.dll) and It works fine in my Dev server. If I moved the same exe file to another server, there only 11.0.3300.0 version installed. It was throwing could not load assembly version error. How do I build my application with 11.0.3300.0 ver and make it work in other server.
Please help me out ..
Thank you
Uninstall the version 10.5.3700.0 from your computer and use only 11.0.3300.0 everywhere.
I had many issues like that with Crystal Report. I finally change to ITextSharp to create my PDF file. Much easier.
Related
I made my project in C# Visual Studio 2017 using .Net Framework 4.7 and SQL Server 2008. Now I tried to run my project in the client machine which has Windows 10 installed on it. After installing I ran the .exe file, all my functions are running smoothly except my Crystal Reports Viewer.
You need to install SAP runtime for Crystal reports on the client machine
You should have install SQL server on your client machine to make the database working similarly you are required to download the client tool for SAP report. So instal Crystal Report Runtime for client machine and it will let you open your reports on your client machine without any error.
Thanks everyone for your answers but I solved it , the issue was in version of Crystal report as it needed CR V13.0.25.134 for 64 bit but I was using CR V13.0.26 , so yeah I made it through. Thanks again everyone for your time.
I have some crystal reports on a website. They are working fine on my local machine. I'm using Crystal Reports version 13.0.3500.0
The test environment it is on another server, Windows 2008 R2, 64 bit operating system.
The problem is that when on the test environment I want to use a crsytal report, I get the following error: The document has not been opened
I spent some time already to figure it out what can be the problem, but without any success. I'm using the same DLL-s as in my local machine.
I checked and the folder where I have the report has all the rights.
Can you please advise?
if you are using IIS go to the application pool select your web site Click on Advanced Settings on the right side Set 'enable 32-bit application ' true (crystal report runtime engine for .net 32-bit had to be installed)
I was getting this error before I installed Crystal Reports Runtime (21) on my server.
Here is an article where you can find download links etc.
I have developed web site to have crystal report. The web site works fine in my PC. I have then transfer it to Azure. Once I transfer, it kept asking for dll files. I have then added all the dll files but finally it gave me this error:
An error has occurred while attempting to load the Crystal Reports
runtime. Either the Crystal Reports registry key permissions are
insufficient, or the Crystal Reports runtime is not installed
correctly. Please install the appropriate Crystal Reports
redistributable (CRRedist*.msi) containing the correct version of the
Crystal Reports runtime (x86, x64, or Itanium) required. Please go to
http://www.businessobjects.com/support for more information.
Any idea how to overcome this problem?
You can't install a runtime like the Crystal Reports runtime using App Service. One solution is to use the virtual machine service that gives you more control on the OS and let you install 3rd party tools.
I have an asp.net web application developed in VS2010 which uses crystal report 13 (32bit) to generate report. on local machine, the reports works fine, but on the hosting server, the CrystalReportViewer does not appear, and there are no error message. I later learned that Crystal Reports Runtime for Visual Studio 2010 (x64) is installed on the server.
I have searched google and sap websites but no solution. my question is: is there a ways to get crystal report 32bit work on 64bit server? and how can I do that?
Any help will be greatly appreciated
I have been able to solve my own problem.
For those who may be facing the problem, please check this link
My application needs to print a Crystal Reports report. It does not show a preview, just takes two parameters and shows a print dialog to set the printer. It works fine on computers that have Crystal Reports installed, but I do not have a way to enforce clients have it already installed.
I have read in various places that adding the ClickOnce prerequisite "SAP Crystal Reports Runtime Engine for .NET Framework" would allow the required Crystal Reports libraries to be registered on the client. When installing the application on the client, it does download the runtime, and installs the runtime, but the application fails to install stating that various CrystalDecisions and CrystalReports assemblies must be registered in GAC.
The first is CrystalDecisions.ReportAppServer.CommonObjectModel. If I add a reference to this in the project and redeploy, then it just gives another message about another assembly. I literally did this 15 times, and never got a seamless install.
What am I missing? I followed this guide from the SAP website (zipped, 2.2 MB, contains a Microsoft Compiled HTML Help file, crnet_dg_2010_en.chm).
I had this problem: for Click-Once applications, you must download and install the 32-bit version of the Crystal Reports Runtime on the client regardless of the client computer's architecture. I ended up installing both the 32-bit and the 64-bit using the MSIs provided on SAP's site to cover all bases and make the GAC error to go away. Afterwards, everything ran smoothly.
Download and install the MSIs (not the executable) from here
FOR CLICK ONCE DEPLOYMENT
In addition to making SAP Crystal Reports Runtime a prerequisite, you need to modify the product.xml file on the development machine. This file is located in: {Program Files}\Microsoft SDKs\Windows\v*.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0\
Find the following line and comment it out:
<BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
Now, re-publish your solution and the setup should install both runtimes on 64-bit machines.
If the above solution didn't work try this,
Go into your project Properties.
Go to the Publish tab.
Click the Application Files button.
Change Publish Status from Prerequisites(auto) to Exclude any file with CrystalDecisions or BusinessObjects in the name.
Click OK
Rebuild your application, then republish it to your site or file share to be installed by your clients.
I found it in this location:
C:\Program Files (x86)\SAP BusinessObjects\BootStrapper\Packages\Crystal Reports for .NET Framework 4.0
C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages