RSS

Crystal Report toolbar images not Displayed ASP.NET

10 Sep

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

Advertisements
 
 

Tags: ,

5 responses to “Crystal Report toolbar images not Displayed ASP.NET

  1. ankur

    February 1, 2014 at 7:15 PM

    I have tried these all solution but no luck

    Like

     
    • Shaunak Pandit

      February 5, 2014 at 5: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

      Like

       
  2. Amit Jha

    January 20, 2012 at 11: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.

    Like

     
  3. hitesh

    July 8, 2010 at 12:15 PM

    Hi everyone, can I please have your advice on the following?

    The Crystal Report Toolbar Images display correctly in the development environment but when deployed on the production server these images fail to display correctly when accessing the site from outside the network. When I access the site on the production server from inside the network the images display correctly.

    I have read several posts about this problem and they suggest that the problem is caused by the application not knowing the correct path to the folder containing the image files. I have tried many different path variations to this toolbar image folder but I can not get the images to appear correctly when I access the site from outside the network.

    Here is my crystal report viewer control definition

    The Web Application is in the directory c:\inetpub\wwwroot\nextgen\

    I have included the aspnet_client directory and all of its associated files as part of my web project. So the full path to the toolbar images folder is:

    C:\inetpub\wwwroot\nextgen\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\images\toolbar

    I have also put a copy of the aspnet_client folder in the directory C:\inetpub\wwwroot\ just in case this is somehow the “root” directory instead of C:\inetpub\wwwroot\nextgen\.

    When I access the website on the production server from within the network the images on the toolbar display fine. When I access it from outside the network they don’t display. Can anyone help?

    Like

     
  4. tariq

    October 28, 2008 at 2:22 PM

    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

    Like

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: