Crystal Report Deployment - c#

I have a VB.Net winforms application that it includes all the DLL in its BIN folder, i deploy it to the client's server everything works good without installing anything on each workstation.. i take a shortcut from the server..
the problem is when i try from any station to preview a crystal report file even tho i installed the runtimes on the server where the shortcut is located but it doesnt work without installing the runtime on each workstation
Any idea how to reference or load crystal report runtime from where the shortcut is located?

Related

using Crystal Report with Azure

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.

How to undergrade Report viewer 11.0.0.0 to Report viewer 10.0.0.0

I have created a winform project with VS 2013 and I used Report Viewer (automatically on ver 11.0.0.0) for reporting it works fine on almost all windows versions except windows XP SP3; because Report Viewer need clr types for sql server 2012 that dose not install on Win XP.
If i use Report viewer 10.0.0.0 there wont be any problem with installing my app on any client. How can i undergrad from ver 11.0.0.0 to 10.0.0.0?
I need to deliver it tomorrow! otherwise i wont get paid!! );
Haven't worked with Report Viewer, but I actually had to do a lot of downgrading for other dlls. In your reference folder in your solution, remove the Report Viewer reference. Afer that, you either download and manually reference the 10.0 dll or you can execute this command in the manager console https://www.nuget.org/packages/Microsoft.Report.Viewer/10.0.0

Crystal Reports version Issue

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.

Crystal Reports in ClickOnce deployment

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

C# vs 2008 crystal reports exception on client machine

my client machine is 64 bit but the application i build is in x86 target platform in C# Visual studio 2008 with win7 32 bit. Now the problem is when i click crystal report button on my application it gives me this error. It works perfectly fine on development machine but on client i just see this message box again and again.
"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."
I have checked crystal reports even in prerequisites just like the attached picture
Also i have installed manually crystal reports runtime from http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0.zip
But error seems not leaving my life at all.
I am using first time crystal reports in C# but it gave me very hard time just to install it on the client machine. I have googled and found solutions most of them i have tried like setting prerequisites and changing mode from Any CPU to x86 but none has fix my error.
IIRC I've had a similar problem in the past caused by deploying Crystal with the Setup package. Have you tried uninstalling Crystal Runtime from the target machine and installing the correct (64-bit) runtime version onto it directly?
You can leave your target CPU as Any.
I found the answer what i did is i have opend the directory in my development machine C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5 and copied the runtime exe for crystal reports and than i have ran it manually on the client machine. By doing this my client machine is now able to run crystal reports perfectly fine. I believe i should store this crystal report runtimes in my setup program for other clients.
Your application is targeting x86 version and you are installing in 64 bit machine,right?
I think crpt x64 installer is corrupted.
After making installer,go to debug folder and find crystal report folder.You can see two crpt installer,one is x86 and another is x64. Delete x64 installer. copy x86 to another place and rename it as x64.Then recopy to crpt folder.Now check installation.
I think I can make you understand.

Categories