<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.aaziz.org &#187; crystal reports</title>
	<atom:link href="http://blog.aaziz.org/tag/crystal-reports/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.aaziz.org</link>
	<description>ramblings and opinions of a geek</description>
	<lastBuildDate>Fri, 08 Oct 2010 00:26:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configure Crystal Reports 2008 for ASP.NET on IIS</title>
		<link>http://blog.aaziz.org/configure-crystal-reports-2008-for-aspnet-on-iis</link>
		<comments>http://blog.aaziz.org/configure-crystal-reports-2008-for-aspnet-on-iis#comments</comments>
		<pubDate>Mon, 25 May 2009 14:34:26 +0000</pubDate>
		<dc:creator>Anthony Aziz</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[crystal reports]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.aaziz.org/?p=103</guid>
		<description><![CDATA[Earlier I posted a &#8220;solution&#8221; to a problem where I couldn&#8217;t export. I searched high and low, running through DLLs and assembly references. I thought I had it working by changing the DLL of one assembly reference the to version 10 reference (CR 2008 is version 12). I stopped the post there. Later, I realized [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier <a title="Export Error with Crystal Reports 2008, in ASP.NET" href="http://blog.aaziz.org/export-error-with-crystal-reports-2008-in-aspnet">I posted a &#8220;solution&#8221;</a> to a problem where I couldn&#8217;t export. I searched high and low, running through DLLs and assembly references. I <em>thought</em> I had it working by changing the DLL of <em>one</em> assembly reference the to version 10 reference (<abbr title="Crystal Reports">CR</abbr> 2008 is version 12). I stopped the post there. Later, I realized the different assemblies were pretty integrated with each other, and you couldn&#8217;t just have different versions floating around (<em>DUH</em>). So I changed them all back to version 10.</p>
<p>Of course I still had issues with that. I forget what, but it wasn&#8217;t good. I think it wouldn&#8217;t run on the production server. That server doesn&#8217;t have Visual Studio installed, only the <abbr title="Crystal Reports">CR</abbr> engine. The version 10 assemblies I were using were the Crystal Report packages that came with <abbr title="Visual Studio .NET 2008">VS.NET 2008</abbr>.</p>
<p>In order to successfully be able to use all the correct assemblies, I had to do more research. What I ended up doing was completely uninstalling Crystal Reports and reinstalling it, and configuring some Virtual Diretories. The steps and and explanation after the jump.</p>
<p><span id="more-103"></span></p>
<p>When version 12 was installed, I had a javascript error on the Report Viewer page. It complained that object &#8220;bobj&#8221; was not found. It was a javascript object. I found the page was referencing a js file in the directory <code>http://host/aspnet_client/system_web/2_0_50727/crystalreportviewers12/</code>. There was no <code>crystalreportviewers12</code> directory there, however there was one at the root&#8230; and one in the <abbr title="Crystal Reports">CR</abbr> install directory, <code>C:\Program Files\Business Objects\Common\4.0\</code>. Then it was clear that the browser needed to find that folder somehow. I copied it there to test, and it worked. Later, as per direction, we created a Virtual Directory to the install folder. I also had to add <code>C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\</code> to the PATH environment variable, otherwise I would get a DLL error when trying to export to Excel format.</p>
<p>That pretty much sums it up. But I&#8217;m going to outline the steps anyways:</p>
<ol>
<li>Completely uninstall Crystal Reports (all version, make sure DLLs do not exist in Common Files folder, or Bin folder of web application)</li>
<li>Reboot</li>
<li>Install Crystal Reports 2008, doing a custome install and making sure to install packages for Visual Studio and the .NET framework (I don&#8217;t believe they were selected by default, this may have had something to do with it). I opted to install all features on my development machine, just in case.</li>
<li>Add <code>C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\</code> to the PATH variable (adjust path if needed)</li>
<li>The directory <code>crystalreportviewers12</code> must be accessible by client browsers from the <code>aspnet_client\system_web\2_0_50727</code> folder. Copying the folder or creating a Virtual Directory to <code>C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12</code> are options</li>
<li>Reboot</li>
</ol>
<p>I hope this helps anyone having Crystal Report 2008 problems with a ASP.NET site (or helps in any other way). The reason I revisted this was because I am configuring a new developement workstation I was upgraded to at work, and have to go through this process again. It&#8217;s good to refresh myself. If I run into any more problems I&#8217;ll post them. Please add your comments or ask any questions if you&#8217;re having problems!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.aaziz.org/configure-crystal-reports-2008-for-aspnet-on-iis/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

