Microsoft Developer Network > Forenhomepage > Crystal Reports for Visual Studio > Charts are not rendered in CR for VS2005 Beta2 Version
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetCharts are not rendered in CR for VS2005 Beta2 Version

  • Sonntag, 19. Juni 2005 05:33gzinger TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    After much newsgroup searching, I was able to make CR work on my web server. However the charts (images) inside the reports do not show up.
    The src attribute for these images look like this:
    src="//CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_5f03e8ad-37b4-4b16-923e-264e3b3a0314.png"
    And obviously is not finding anything.
    Hence 2 questions:

    1. How can I specify the domain name for the URLs or tell it to use relative path?
    2. Where can I find CrystalImageHandler.aspx ? I searched my entire HD and could not find it.

    Thank you.

Antworten

Alle Antworten

  • Dienstag, 21. Juni 2005 14:20gzinger TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Regarding my first question:

    I already decompiled the CR code using Reflector and see where the error is. So, perhaps, you could help me to work around it.
    The problem occurs in their method:

    internal static string get_RuntimeImageHandlerService()
    {
          return (ViewerGlobal.GetApplicationPath + "/CrystalImageHandler.aspx?dynamicimage=");
    }

    While it works fine for subwebs, it fails for web sites that run on the root. The  GetApplicationPath returns "/" and then combined with the hardcoded string the resulting URL becomes "//CrystalImageHandler.aspx?...", which is interpreted by IE as a domain name. So, just one additional "if" statement is needed to account for double slash.

    So, my questions is, how can I substitute my code inside the CR assembly? Is there any way?

    Thanks.

     

  • Donnerstag, 23. Juni 2005 17:24Francis4370201 TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Have you tried adding this to the web.config in your root web?  Crystal Reports registers the CrystalImageHandler.aspx IHttpHandler when you drag and drop your webform viewer to the webform:

      <httpHandlers>
       <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
      </httpHandlers>
     </system.web>
    </configuration>

    Just curious: did you create the .aspx using a text editor, or did you not copy the web.config to your root?
  • Donnerstag, 23. Juni 2005 17:36gzinger TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Yes, that was the answer to my first question. I figured it out myself pretty quickly - sorry didn't post it back to the thread. Thank you anyway.

    However, the second question remains. When a web site runs on the root (not subweb) the URL for the images that CR produces is incorrect - it's a bug in their implementation (a guy from MSFT confirmed that fact) - see my second posting on this thread for more info.

    So, my question becomes either a) How can I fix somebody else’s bug (CR in this case)? or b) When will the crystals fix it themselves and provide me with an updated version?

    Any ideas are greatly appreciated.
  • Donnerstag, 23. Juni 2005 22:55Keith ThomsonModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet
    We will investigate on our end and fix it if we confirm that it is our bug.

    Thanks!
    Keith - Business Objects
  • Freitag, 24. Juni 2005 00:06gzinger TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Thanks for the reply. Any idea of the timeline?
  • Dienstag, 28. Juni 2005 17:21Keith ThomsonModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    I'll try to update you when I hear back, but at this time they are investigating and a timeline will depend on what they find.

    Keith - Business Objects
  • Sonntag, 17. Juli 2005 01:24StephenBarclay TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Keith,

    We are having this problem also..  Any updates on the timeline?

    Stephen
  • Mittwoch, 19. Oktober 2005 04:05Allan Pumphrey TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    We had the same problem and traced it to our web.config missing the following:

      <xhtmlConformance mode="Legacy"/><httpHandlers><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>

    Just insert this line above the </system.web>


  • Samstag, 12. November 2005 08:39Ramesh Kasavaraju TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Is there a resolution for this problem now ? I am in the same situation as gzinger
  • Donnerstag, 1. Dezember 2005 16:49gzinger TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Release version apperently fixes the issue. I had to reinstall CR .msi block and restart the server on uninstall and reinstall for it to kick in.

    Thanks.
  • Freitag, 16. Juni 2006 19:21Bonquest Technologies TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Well nice said, but for me my client is still. coz on the dev platform all ok. where do i get the install CR, i got Visual studio 2003 and Visual Studio 2005 Express Edition. i tried this -- http://support.businessobjects.com/communitycs/technicalpapers/crnet_deployment.pdf -- nad i get it, but how do i add on the production server. I have full crystal Reports with my Office and VS  2003. SOS.