cancel
Showing results for 
Search instead for 
Did you mean: 

Problem loading CrystalReportViewer

Former Member
0 Kudos

I'm building an app using the SAP BusinessObjects BI platform .NET SDK Redistributable 4.0 32bit on a 64bit machine.

When I try to load a CrystalReportViewer control on the design page I get the following error:

Error Creating Control - CrystalReportViewer1

Failed to create designer .........

Since I've installed this SDK other apps I've developed taht used to work are now showing the same error.

Your help is appreciated.

SPierog

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Sounds to me like you are adding the activeX viewer (crviewer.dll) - possibly because you are trying to use the crxDDrt.dll in your app?

E.g.; what CR dlls / assemblies are you referencing in your project?

- Ludek

Former Member
0 Kudos

My assemblies are:

<assemblies>

        <add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

        <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

        <add assembly="CrystalDecisions.Enterprise.Framework, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

        <add assembly="CrystalDecisions.Web, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

      </assemblies>

The viewers in my toolbox are:

I do not have activeX viewer (crviewer.dll) or crxDDrt.dll on my machine.

I'm basicaly taking the tutorial NET VB2008 Enterprise BI14 Schedule PDF-CR from

http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/706de3ab-8186-2b10-15aa-e4c5e73283f1

and trying to add a viewer so I can see the report I rescheduled.

SPierog

former_member183750
Active Contributor
0 Kudos

See the following re distribution of SAP BusinessObjects BI platform .NET SDK Redistributable 4.0:

http://wiki.sdn.sap.com/wiki/x/iA1dDw

- Ludek

Former Member
0 Kudos

The Viewer loads on the page but now I'm getting the error

The base class includes the field 'CrystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).

SPierog

former_member183750
Active Contributor
0 Kudos

At design time, this is a known issue. The viewer should come up without errors during actual run of the project.

- Ludek

Former Member
0 Kudos

I get the error at runtime also.

SPierog

former_member183750
Active Contributor
0 Kudos

See if the following will help:

  1. Remove the viewer from the form.
  2. Make sure all your CR / BO references are to files of version 14.x
  3. In the .NET IDE, remove the viewer from the toolbox. Then re-add the viewer, ensuring it is version 14
  4. Re-add the viewer on to the form
  5. Keep fingers crossed
  6. Run

- Ludek

Former Member
0 Kudos

It worked!!

Thanks for the continued support Ludek.

What a long strange trip it's been......

former_member183750
Active Contributor
0 Kudos

And I do apologize for the trouble. I am told that the next Service Pack will have a much better SDK integration.

Keeping my fingers crossed,

- Ludek

Answers (0)