RSS

Crystal Report toolbar images not Displayed ASP.NET


Reposting from old blog

One of my colleague faced a strange problem while using Crystal Reports

He got his report published on the ASPX page but the images in the toolbar weren't being displayed.
While trying to find out the problem for it I checked the ASPX page and noticed that the src path for the images on the toolbar was from another virtual directory  “crystalreportwebformviewer2” which to our surprise didnt exists on his machine at all.
Well no idea whether that was due to inapropriate installation or what but the fact was we didnt have a directory to which
t he images were being referenced from.

Well anyways here's the solution to the above problem
When you plan to use the Crystal reports toolbar in your reports it will automatically
refer to the images stored in your program files directory i.e


C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\Images



this directory has all the images in appropriate sub directories inside but for .NET to refer to it at runtime there
needs to be a virtual directory


in Our case the virtual directory being referenced was This might change according to the version of Crystal reports being used.

So all we had to do to get the Images on the toolbar was to

1# Create a virtual directory   crystalreportwebformviewer2
2# M
ap it to  C:\Program Files\Microsoft Visual Studio .NET 2003\Crystal Reports\Viewers\Images


After which the images on the toolbar were displayed without any other issue :)

Shounak Pandit
  1. tariq

    October 28, 2008 at 10:22 AM

    hi how are you?
    if anyone can help me the crystal report in my website is not working and give me the empty dialogbox with no setting for printer.


    thank u for all

  1. tariq

    October 28, 2008 at 10:22 AM

    hi how are you?
    if anyone can help me the crystal report in my website is not working and give me the empty dialogbox with no setting for printer.


    thank u for all

  1. Amit Jha

    January 20, 2012 at 6:29 AM

    1. Please make sure the CR version installed on the server matches the one you use on your application/website
    2. Please make sure that the assemblies of the CR installed on the server are referenced correctly on your web.config
    3. Please make sure you set the application pool of your application to operate under LOCAL SERVICE permission
    4. Please make sure FULL TRUST mode is enabled on your operating folder
    5. Please make sure crystalreportviewer and aspnet_client folders are copied to your operating folder.

  1. Amit Jha

    January 20, 2012 at 6:29 AM

    1. Please make sure the CR version installed on the server matches the one you use on your application/website
    2. Please make sure that the assemblies of the CR installed on the server are referenced correctly on your web.config
    3. Please make sure you set the application pool of your application to operate under LOCAL SERVICE permission
    4. Please make sure FULL TRUST mode is enabled on your operating folder
    5. Please make sure crystalreportviewer and aspnet_client folders are copied to your operating folder.

  1. ankur

    February 1, 2014 at 2:15 PM

    I have tried these all solution but no luck

  1. Shaunak Pandit

    February 5, 2014 at 12:53 PM

    Sorry about that, my post is from 2005-2006 working of crystal report. Things might have changed. if you find a working solution please do post it here for others to benefit from it.

    Shaunak

  1. Shaunak Pandit

    February 5, 2014 at 12:53 PM

    Sorry about that, my post is from 2005-2006 working of crystal report. Things might have changed. if you find a working solution please do post it here for others to benefit from it.

    Shaunak

Post a Comment

Copyright © Shounak S. Pandit. Powered by Blogger.

Ads