1768230 - Report images are not updated in a Winform application

SAP Knowledge Base Article - Public

1768230 - Report images are not updated in a Winform application

Symptom

  • A report uses "Graphic Location" formula to render required images
  • At runtime in a Winform application the image does not change

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Reproducing the Issue

  • Create a Crystal Report
  • Add an image to the report
  • Use the "Graphic Location" formula (format dialog, "x+2" button)
  • In the above formula set the image path
  • Change the image path at runtime

Cause

  • The application was loading both Crystal Reports 10.5 and Crystal Reports for Visual Studio 2010 assemblies
  • This is a known issue on development computers only
  • See KB 1540572 and 1544532

Resolution

  • On the development computer, uninstall Crystal Reports 10.5 (bundles with VS 2008)
  • Note that this will also be the case with Crystal Reports 10.2 (bundles with VS 2005)

Keywords

picture jpg CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio