Crystal Reports toolbar not displaying correctly

Last post 09-07-2007 10:03 PM by luwina. 9 replies.

Sort Posts:

  • Crystal Reports toolbar not displaying correctly

    07-02-2007, 4:09 PM

     I use Crystal Reports for Visual Studio 2005 ( Crystal Reports 10). When I browse my report in a development server all is OK!! But when I browse the same report in a production server (IIS 6 Win 2003) I don't see toolbar perfectly. I see like the image below.

     Crystal Toolbar

    Can anyone help me? 

  • Re: Crystal Reports toolbar not displaying correctly

    07-02-2007, 4:23 PM
    • Loading...
    • pontupo
    • Joined on 06-12-2007, 12:30 PM
    • Posts 85

    Basically, the CrystalReportViewer can't find it's images because (I imagine) you don't have Crystal installed on the server. You don't need to install Crystal on the server to fix this, but you do need to tell the viewer where to find the images. Check this out: http://forums.asp.net/p/993924/1296450.aspx

    If you can find your images folders (a likely path is present in that above post) you can copy the image folders to any of a variety of locations and then you can set the CrystalReportsViewer object with the appropriate path. If you select the object in VS, there are two properties available that are "Toolbar images location" and "Tree images location" or something like that. Place the path to wherever you put the images (or recreate the same path they are at on your local machine... I chose not to do this because it's some ridiculous location that I'd never find). Hope this helps,

    Pont 

     EDIT: Greater detail in setting the images folder locations: In your .aspx page, in Design view, select the CrystalReportViewer object. The two properties that you want to set are called GroupTreeImagesFolder and ToolbarImagesFolder which are simply the path (I think it supports relative pathing) to the images folder. You'll note that there are two subdirectories in the Images folder named Toolbar and GroupTree.
     

  • Re: Crystal Reports toolbar not displaying correctly

    07-02-2007, 4:41 PM

     Ok. Thank you!

  • Re: Crystal Reports toolbar not displaying correctly

    07-23-2007, 3:29 PM
    • Loading...
    • dhirenjoshi
    • Joined on 07-23-2007, 7:10 PM
    • Posts 3

    I have the settings as you have described. But it is still not gettting picked on my DEV servers.

    WE have the URL for images as this  ToolbarImagesFolderURL: /crystalreportviewers115/images/toolbar/ and I have set it to this but when I look in view source the full URL is getting appended. /aspnet_client/System_Web/2_0_50727/crystalreportviewers115/images/toolbar/first.gif

     

    Not sure why this ahppening even though doing changes to the toolbarimages URL.

     Any changes needed to override the changes ?

    Thanks

    Dhiren

     

  • Re: Crystal Reports toolbar not displaying correctly

    07-24-2007, 10:49 AM
    • Loading...
    • pontupo
    • Joined on 06-12-2007, 12:30 PM
    • Posts 85

    OK, so it does do relative pathing, but the pathing is relative to your website root. The directory that the viewer is looking for by default is:

    <web root>\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\Images

    Assuming you built the web form with .NET 2.0.50727, etc.  What you said sounds like a combination of the two. I just tested with my implementation and placing the following: "/reports/Fore-Pipe-Q1/Images/ToolBar/" allowed it to work when I had placed the Images folder in the same folder as the report resided (the report is at <web root>/reports/Fore-Pipe-Q1/Fore-Pipe-Q1.rpt). Make sure that the path you place in the properties is relative to the web root. If all else fails, create the path shown above as the default or place a virtual directory link to the appropriate place in the system files. For instance, make the following directory:

    <web root>\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\Images

    and put your two image folders in there. It should work using the properties though so long as you place your images somewhere within the website and provide a path relative to the web root.

    Pont 

  • Re: Crystal Reports toolbar not displaying correctly

    07-24-2007, 11:57 PM
    • Loading...
    • dhirenjoshi
    • Joined on 07-23-2007, 7:10 PM
    • Posts 3

    Appreciate your quick response  Pont

    Thanks.

    I got that working. I had to set in my code behind the path to the images my HttpContent.Current.Request.ServerVariable["SERVER_NAME"]+"/reportviewers115/images/toolbar";

    But now I have a new problem. My print button comes up but on clicking it , I get page can not be found.

    My understanding it crystal using Javascript called print.js and this resides in the /reportsviewers115/js/ directory and I had our Admin confirm this but I am not sure where I need to set this path in code behind so that when I click the print icon , the crystal reports client is able to find it.?

    Any ideas ... ?

     

    Thanks

    Dhiren 

     

  • Re: Crystal Reports toolbar not displaying correctly

    07-25-2007, 9:08 AM
    • Loading...
    • pontupo
    • Joined on 06-12-2007, 12:30 PM
    • Posts 85

    Yes, the export and print buttons use Javascript functions. I don't know of any way to specify their location, however, either from the Properties of the CrystalReportViewer or from code =/ The best that I can suggest is either follow the suggestion I had above about creating the directory:

    <web root>\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\

    and then JS instead of Images and placing the files in there (you can find them right near where you found the images). There may be a way to specify the location of those files in the code behind that I'm not aware of, however. I still find it mildly irritating that Business Objects hasn't made these images and javascript files dependencies so that when you build your website in the first place they get pulled and distributed properly... it sure would make this whole affair a lot easier.

     

    Pont

     

  • Re: Crystal Reports toolbar not displaying correctly

    07-26-2007, 5:06 PM

    The same thing does works if you run web application project using IIS... Casini does not work without a workaround

  • Re: Crystal Reports toolbar not displaying correctly

    08-02-2007, 12:51 AM
    • Loading...
    • theskull
    • Joined on 08-02-2007, 4:38 AM
    • Posts 1

    hi<br/>

    i read these forum. I cannot open export page when crystalreportviewer export button click. someone help me.


     

  • Re: Crystal Reports toolbar not displaying correctly

    09-07-2007, 10:03 PM
    • Loading...
    • luwina
    • Joined on 09-07-2007, 9:58 PM
    • Posts 3

    you only have to copy the whole <aspnet_client> directory to your root directory (or your default web site, as set in your IIS).  Then everything will work out fine.

Page 1 of 1 (10 items)