{"id":13,"date":"2007-09-16T13:13:29","date_gmt":"2007-09-16T11:13:29","guid":{"rendered":"http:\/\/jsiegmund.wordpress.com\/2007\/09\/16\/crystal-reports-web-part-part-2\/"},"modified":"2013-04-18T18:57:08","modified_gmt":"2013-04-18T17:57:08","slug":"crystal-reports-web-part-part-2","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2007\/09\/crystal-reports-web-part-part-2\/","title":{"rendered":"Crystal Reports Web Part &#8211; part 2"},"content":{"rendered":"<p>Earlier, I wrote <a href=\"http:\/\/jsiegmund.wordpress.com\/2007\/08\/20\/crystal-reports-web-part-for-moss-2007\/\">a blogpost <\/a>about creating a web part to display Crystal Report files. The biggest problem faced was the displaying of images on a report (which include graphs, pie charts and more stuff like that) which wouldn&#8217;t work in a MOSS environment. I solved it by creating a second web application to &#8216;host&#8217; the imagehandler which handles the image requests made by IMG SRC=&#8221; tags.<\/p>\n<p>On the MSDN Forum,\u00a0I found <a href=\"http:\/\/forums.microsoft.com\/MSDN\/showpost.aspx?postid=2054374&amp;siteid=1\">a post<\/a> made by someone with a similar problem. After solving the problem I replied posting my solution and left it alone. Luckily, I had the post alerts still on to notify me about a new reply being posted. Svetlana came up with two interesting solutions for the exact same problem, which are a bit more elegant if you ask me:<\/p>\n<ul>\n<li>Rename the CrystalImageHandler.aspx file to a different extension, so the MOSS handler won&#8217;t pick it up. Offcourse you&#8217;ll have to alter the web.config to include a handler to the correct file.<\/li>\n<li>Place a custom made CrystalImageHandler.aspx file in the TEMPLATE\/LAYOUTS directory of the 12 hyve. Now write a regex which will replace all calls to the old imagehandler with a call to that file which will be in the _layouts directory of your web app.<\/li>\n<\/ul>\n<p>I&#8217;ll see if I can post the contents of the CrystalImageHandler.aspx file and the web part regex to get you guys on your way. And again: thanks to Svetlana for providing this solution!<\/p>\n<p>Update! The fully functional, ready-to-go web part with\u00a0installation guide and support\u00a0is now <a href=\"http:\/\/jsiegmund.wordpress.com\/2009\/09\/15\/crystal-reports-webpart-for-sale\/\">on sale<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier, I wrote a blogpost about creating a web part to display Crystal Report files. The biggest problem faced was the displaying of images on a report (which include graphs, pie charts and more stuff like that) which wouldn&#8217;t work in a MOSS environment. I solved it by creating a second web application to &#8216;host&#8217;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-d","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/13"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}