Quantcast
Channel: AuthorCode » Ankur
Viewing all articles
Browse latest Browse all 11

Display Images and Chart in Crystal Report after diployment

$
0
0

Some time Chart(in crystal report) doesn’t display after the deployment on the server, although at the design time it shows correctly. Today I face the same problem: my crystal report is showing Pie chart correctly on my local machine but not on the server. You can face same problem when the crystal report doesn’t show the image(s).

So as per my workaround I found the solution to Show chart and Images in Crystal Report after deployment or publish on the server.

we need to add following HttpImageHandler to view Images in Crystal Report:

  1. <system.web>
  2.   <httpHandlers>
  3.       <add verb="GET" path="CrystalImageHandler.aspx"
  4.                        type="CrystalDecisions.Web.CrystalImageHandler,
  5.                       CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
  6.                       PublicKeyToken=692fbea5521e1304"/>
  7.   </httpHandlers>
  8. </system.web>

and

  1. <system.webServer>
  2.     <handlers>
  3.       <add name="CrystalImageHandler.aspx_GET" verb="GET"
  4.                 path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler,
  5.                CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
  6.                PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
  7.     </handlers>
  8.     <modules runAllManagedModulesForAllRequests="true"/>
  9. </system.webServer>

After adding these you will see your chart or Images in crystal report.


Viewing all articles
Browse latest Browse all 11

Trending Articles