cancel
Showing results for 
Search instead for 
Did you mean: 

c# - console application

0 Kudos
1,376

I want to write an console application in c#. Every time i use "load()" the following message shows up, after a klick on "OK", everything works. As an Windows Forms application, it works without problems?

My code is simple:

using (ReportDocument cryRpt = new ReportDocument())
{
 try {
   cryRpt.Load(dokPath);
   cryRpt.SetParameterValue('QR', 'my value');
   cryRpt.PrintToPrinter(1, false, 0, 0);
  }
}

Whats the problem here? Thanks for your help.

View Entire Topic
0 Kudos

Hi Daniel,

I had another person report the same issue, or close to it. CR for VS used to use a FlexNet Server to allow in place upgrades to happen. That server is no longer working so when you get this type of error it means you are applying a SP on top of an existing install.

So uninstall everything again, go into this folder and if you only had CR for VS installed delete the folder:

C:\Program Files (x86)\SAP BusinessObjects

Go to your %USER%\AppData\Local\Temp

and delete all files, about 5 or 6 may be locked so just skip them. Close all other app's first.

Verify Programs and Features do not show any CR for VS installs.

Try reinstalling again and right click on the setup.exe and choose Run As Administrator, do not installing just the MSI packages on the Developers PC, use the EXE to install, it has the option to install the 64 bit runtime, click OK. That way it fully integrates into Visual Studio.

Do not install the MSI packages on your DEV PC, it causes all sorts of upgrade issues if you don't uninstall them in reverse order once you have done that.

Thanks again

Don