cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports .NET 2005 Subreport linked with parameters and command cols

Former Member
0 Kudos

Sorry if this has been asked before, but I cannot find the answer after looking for over an hour.

I have a Crystal XI report that I am using in .NET 2005 that links on a paramter (same parameter name in the main and sub report), AND links on 2 command object columns.

The links looks like this:

[http://i389.photobucket.com/albums/oo332/bowlegtroy/SubReportLinks.jpg|http://i389.photobucket.com/albums/oo332/bowlegtroy/SubReportLinks.jpg]

I'm trying to pass the parameters to the main report via code in ASP.NET (C#) like so:

private void SetCurrentValuesForParameterField(ReportDocument rptDoc, string szParameter, ArrayList valuesARY)

{

ParameterValues currParamValues = new ParameterValues();

foreach (object singleValue in valuesARY)

{

ParameterDiscreteValue paramDiscVal = new ParameterDiscreteValue();

paramDiscVal.Value = singleValue.ToString();

currParamValues.Add(paramDiscVal);

}

ParameterFieldDefinitions paramFldDefs = rptDoc.DataDefinition.ParameterFields;

ParameterFieldDefinition singleParamFldDef = paramFldDefs[szParameter];

singleParamFldDef.ApplyCurrentValues(currParamValues);

}

This works for other reports that do NOT have sub reports. However, thsi si the first sub report we are trying to set up and cannot get it to work properly.

Error it throws is this one:

[http://i389.photobucket.com/albums/oo332/bowlegtroy/SubReportLinks_Error.jpg|http://i389.photobucket.com/albums/oo332/bowlegtroy/SubReportLinks_Error.jpg]

Why does this fail? Is there a workaround or fix?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Troy,

I would like to inform you that VS 2005 is only compatible with CR XI R2 and CR 2008.

Have look in supported plateform guide:

[https://websmp105.sap-ag.de/bosap-support]

You need to upgrade CRXI to CRXIR2 then try to solve parametes issue.

To download the CR XI R2 follow the instructions given below:-

Crystal Reports XI is installed on your computer. You need to manually uninstall Crystal Reports XI for one of the following reasons:

u2022 To verify that all Crystal Reports XI components have been completely removed prior to installing a later version of Crystal Reports.

u2022 To remove the remaining Crystal Reports XI components that have not been removed using the 'Add/Remove Programs' command (Start > Settings > Control Panel).

u2022 To remove the remaining Crystal Reports XI components that have not been removed using the Setup.exe file from Crystal Reports XI installation CD.

How do you manually uninstall Crystal Reports XI?

Resolution

Before getting started, uninstall Crystal Reports XI by launching the Setup.exe file from the installation CD or by using the 'Add/Remove Programs' command. If either of these methods fails to remove all Crystal Reports directories, files and registry keys, then continue with the resolution of this article.

==========

WARNING:

This resolution can be applied if Crystal Reports XI is the only software installed on the computer that uses the Business Objects directories, files and registry keys.

For example, Crystal Analysis, Crystal Enterprise and BusinessObjects Enterprise XI are applications that may share the same directories, files and registry keys.

Removing these directories, files and registry keys may cause other software to function incorrectly.

==========

1. To manually uninstall Crystal Reports XI, delete the following directories:

u2022 C:\Program Files\Common Files\Business Objects\3.0

u2022 C:\Program Files\Business Objects

====================

NOTE:

Do not remove the directory C:\Program Files\Common Files\Business Objects\3.0 if you have BusinessObjects Enterprise XI or Crystal Reports Server XI installed. These files are shared by both applications and removal of these files will cause Business ObjectsEnterprise XI and Crystal Reports Server XI to function incorrectly.

====================

2. Delete the following registry keys:

====================

WARNING:

The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk.

HELP:

For information on how to edit the registry key, view the 'Changing Keys And Values' online Help topic in the Registry Editor (Regedit.exe).

RECOMMENDATION:

It is strongly recommended that you make a backup copy of the registry files (System.dat and User.dat on Win9x computers) before you edit the registry.

====================

u2022 HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects

u2022 HKEY_CURRENT_USER\Software\Business Objects

u2022 HKEY_USERS\S-#-#-##-...-####\Software\Business Objects

(The number signs (#) represent a series of numbers that are different on each computer.)

====================

NOTE:

After making changes to the registry, restart the affected service or application as required.

After deleting the CR XI from the system install the CR XI R2 full build and provide the same key as you provided in CR XI.

URL to download CR XI R2 is: - http://downloads.businessobjects.com/akdlm/crystalreports/14-00806-085.zip

Hope this helps!!

Regards,

Shweta

Former Member
0 Kudos

I'm using version 11.0.0.1830. Is that R2?

Former Member
0 Kudos

Hi, Troy;

No, you are using R1. R2 is 11.5. Please follow the upgrade steps as indicated.

Regards,

Jonathan

Former Member
0 Kudos

Thanks! I'll do that and see if it is resolved. I suppose there are new merge modules for my installation package that I need to use as well, right?

Former Member
0 Kudos

Merge module for CR XI R2 SP4 are available[here|http://resources.businessobjects.com/support/additional_downloads/runtime.asp#06].

Regards,

Amit

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In addition to above suggestion I would suggest to use the latest service pack of CR XI R2 i.e. Service Pack 4.

to download SP4 click [here|http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2].

Regards,

Amit

Former Member
0 Kudos

Hi Troy,

If this [link|http://downloads.businessobjects.com/akdlm/crystalreports/14-00806-085.zip]

Not works for you then try with this:

[https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]

Select->Product->Version->Service pack->Crystal Reports XI Release 2 Service Pack 2 - Full Build

Regards,

Shweta