cancel
Showing results for 
Search instead for 
Did you mean: 

script errors loading parameters window in WinForms app

Former Member
0 Kudos

We are deploying the crystal runtime as part of a VS2008 windows forms app using CRRuntime_12_1_mlb.exe

We're getting 'an error has occurred in the script on this page' errors when the parameters window loads and IIS is not installed as part of the operating system e.g.

line 24: _pe is undefined

line 63: object expected

line 419: _units is undefined

We're testing on Vista (SP1) & XP (SP2) & this wasn't an issue with CRRuntime_12_0_mlb.exe

Please can someone advise ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please make sure that you have used the correct Crystal dlls. I understand that you are using VS2008 but the msi that you are using is for CR2008. Also make sure that you have CR2008 sp0 and above product or CR that comes with VS2008.

[This|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/crystalReports2008] might be of some help to you.

Regards,

AG.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ludek,

In our case it seems to be missing 'prompting' and 'js' sub-folders that are the cause of the problem - if I copy them over from the development pc, the problem is solved.

Thank you for your help - any update from the database re: CR2008 would be appreciated

Former Member
0 Kudos

Hi,

we also experience this problem. On a regular basis, the installation of the CR2008 SP1 runtime does not install all required files which would be lcoated in "Business Objects\Common\4.0\crystalreportviewers12". You only notice this problem afterwards though, when the errors in the parameter window pop up. I'd appreciate a solution.

Regards,

Florian

former_member183750
Active Contributor
0 Kudos

Please create a new thread. This sounds like a different issue.

Ludek

Former Member
0 Kudos

Hi,

RE: AG

The Crystal Reports 2008 version used to build the (external) reports is 12.1.0.892

Our winforms app makes the following references

CrystalDecision.CrystalReports.Engine (version 12.0.2000.0, file version 12.1.2000.882)

C:\Program Files\Business Objects\Common\4.0\managed\dotnet2 CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.Enterprise.Framework (version 12.0.1100.0, file version 12.1.0.882)

C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Framework.dll

CrystalDecisions.Enterprise.InfoStore (version 12.0.1100.0, file version 12.1.0.882)

C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.InfoStore\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.InfoStore.dll

CrystalDecisions.ReportSource (version 12.0.2000.0, file version 12.1.2000.882)

C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportSource\12.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportSource.dll

CrystalDecisions.Shared (version 12.0.2000.0, file version 12.1.2000.882)

C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.Shared.dll

CrystalDecisions.Windows.Forms (version 12.0.2000.0, file version 12.1.2000.882)

C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.Windows.Forms.dll

Does that look OK ? Is there anything else we need to check ?

We've checked the GAC on the target machine and the versions/file versions match

If we install IIS and then remove and reinstall CRRuntime_12_1_mlb.exe, the problem goes away

RE: Ludek

The folder c:\program files\business objects\common\4.0\crystalreportviewers12 exists on the deployed computers but does not contain an html sub-folder, only ActiveXControls, resourcecabs, urlreporting and a web.config file. There is no crystalreportviewer12 folder in our app folder

Thank you for assisting

former_member183750
Active Contributor
0 Kudos

Oh, OK, my memory obviously failed me re. the actual behavior. What you will have to do is "somehow", get the html folder (with it's contents) under the crystalreportviewers12 folder. E.g.; copy the folder from your development computer to the deployed computer. I remember this (no IIS, or IE) being an issue all the way back to CR 10 - where it was actually even worse. Anyhow, I'll look up the issue in our database and see where it stands with CR 2008. However, in the meantime, you will have to do the copy as I mentioned above.

Ludek

former_member183750
Active Contributor
0 Kudos

I believe the issue is due to no IIS when the CR runtime is installed. The prompting is controlled, in part, through the crystalreportviewers12\html folder. Under normal conditions, the crystalreportviewers12 folder is installed here:

c:\program files\business objects\common\4.0\crystalreportviewers12.

If you look for the crystalreportviewers12 folder on your deployed computers I think you will find the folder under your app folder. Thus, you have to manually move the folder so it matches the path above.

Ludek