<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SSRS SDK for PHP</title><link>http://ssrsphp.codeplex.com/project/feeds/rss</link><description>SQL Server Reporting Service SDK for PHP</description><item><title>New Post: SSPI Authentication</title><link>http://ssrsphp.codeplex.com/discussions/221415</link><description>&lt;div style="line-height: normal;"&gt;I am hoping to forward the user's window's domain logon credentials to SSRS with this SDK so I won't have to hard code credentials. Is this possible or is this the same issue as only supporting Basic Authentication?&lt;br /&gt;
&lt;br /&gt;
I wondering if we will run into &lt;a href="http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx" rel="nofollow"&gt;double-hop&lt;/a&gt; issues if we can do this.&lt;br /&gt;
&lt;/div&gt;</description><author>fattmox</author><pubDate>Tue, 14 May 2013 22:54:51 GMT</pubDate><guid isPermaLink="false">New Post: SSPI Authentication 20130514105451P</guid></item><item><title>New Post: Cannot html render chart</title><link>http://ssrsphp.codeplex.com/discussions/360381</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Has anyone fixed this  ? &lt;br /&gt;
&lt;br /&gt;
I have same isssue and no resolution for this at all.&lt;br /&gt;
&lt;br /&gt;
tx&lt;br /&gt;
Gabliver&lt;br /&gt;
&lt;/div&gt;</description><author>Gabliver</author><pubDate>Thu, 28 Mar 2013 09:10:28 GMT</pubDate><guid isPermaLink="false">New Post: Cannot html render chart 20130328091028A</guid></item><item><title>New Post: SSRS SDK for php, with php installed under linux</title><link>http://ssrsphp.codeplex.com/discussions/404084</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;What error you are getting...&lt;/p&gt;
&lt;p&gt;We are using SSRS with linux hosting.... may be I can help!&lt;/p&gt;
&lt;p&gt;post details&lt;/p&gt;
&lt;/div&gt;</description><author>nazimbadar</author><pubDate>Sat, 19 Jan 2013 04:45:15 GMT</pubDate><guid isPermaLink="false">New Post: SSRS SDK for php, with php installed under linux 20130119044515A</guid></item><item><title>New Post: Does SSRS SDK support SQL Server 2008 (i mean non-express edition)???</title><link>http://ssrsphp.codeplex.com/discussions/354000</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Solved. check article.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;http://stackoverflow.com/questions/10381836/does-ssrs-sdk-support-sql-server-2008-i-mean-non-express-edition&lt;/p&gt;
&lt;/div&gt;</description><author>mrigess</author><pubDate>Fri, 18 Jan 2013 05:31:19 GMT</pubDate><guid isPermaLink="false">New Post: Does SSRS SDK support SQL Server 2008 (i mean non-express edition)??? 20130118053119A</guid></item><item><title>Reviewed: SSRS SDK for PHP (nov 22, 2012)</title><link>http://ssrsphp.codeplex.com/releases/view/43222#ReviewBy-rulitox31</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - Business Intelligence es un conjunto de metodolog&amp;#237;as, aplicaciones y tecnolog&amp;#237;as que permiten reunir, depurar y transformar datos de los sistemas transaccionales e informaci&amp;#243;n desestructurada &amp;#40;interna y externa a la compa&amp;#241;&amp;#237;a&amp;#41; en informaci&amp;#243;n estructurada, para su explotaci&amp;#243;n directa &amp;#40;reporting, an&amp;#225;lisis OLTP &amp;#47; OLAP, alertas, etc.&amp;#41; o para su an&amp;#225;lisis y conversi&amp;#243;n en conocimiento, dando as&amp;#237; soporte a</description><author>rulitox31</author><pubDate>Fri, 23 Nov 2012 04:12:41 GMT</pubDate><guid isPermaLink="false">Reviewed: SSRS SDK for PHP (nov 22, 2012) 20121123041241A</guid></item><item><title>New Post: SSRS SDK for php, with php installed under linux</title><link>http://ssrsphp.codeplex.com/discussions/404084</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is there a tutorial for running an SSRS report when php is installed on an ubuntu server? Does it work without having IIS installed?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I can view the SSRS report under windows but when I try to run it I get a credential error.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your answer.&lt;/p&gt;
&lt;p&gt;Bogdan&lt;/p&gt;
&lt;/div&gt;</description><author>bogdan_pavel84</author><pubDate>Wed, 21 Nov 2012 13:10:25 GMT</pubDate><guid isPermaLink="false">New Post: SSRS SDK for php, with php installed under linux 20121121011025P</guid></item><item><title>New Post: SSRS subreport not working </title><link>http://ssrsphp.codeplex.com/discussions/361380</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;I have no idea how to solve this. I gave up on using ssrsphp.&lt;br&gt;
&lt;br&gt;
&lt;div&gt;
&lt;div id="SkyDrivePlaceholder"&gt;&lt;/div&gt;
&lt;hr id="stopSpelling"&gt;
From: [email removed]&lt;br&gt;
To: [email removed]&lt;br&gt;
Date: Thu, 15 Nov 2012 13:28:50 -0800&lt;br&gt;
Subject: Re: SSRS subreport not working [ssrsphp:361380]&lt;br&gt;
&lt;br&gt;
From: mastercafe&lt;br&gt;
&lt;div id="ecxThreadNotificationPostBody"&gt;I'm having the same problem, my subreport link shows up as blue, but it is just plain text and clicking on it does nothing, . Were you able to come up with a solution to this?&lt;br&gt;
&lt;/div&gt;
&lt;div id="ecxThreadNotificationFooter"&gt;Read the &lt;a href="http://ssrsphp.codeplex.com/discussions/361380#post942327" target="_blank"&gt;
full discussion online&lt;/a&gt;.&lt;br&gt;
To add a post to this discussion, reply to this email (&lt;a href="mailto:ssrsphp@discussions.codeplex.com?subject=[ssrsphp:361380]"&gt;ssrsphp@discussions.codeplex.com&lt;/a&gt;)&lt;br&gt;
To start a new discussion for this project, email &lt;a href="mailto:ssrsphp@discussions.codeplex.com"&gt;
ssrsphp@discussions.codeplex.com&lt;/a&gt;&lt;br&gt;
You are receiving this email because you subscribed to this discussion on CodePlex. You can
&lt;a href="https://ssrsphp.codeplex.com/subscriptions/thread/project/edit" target="_blank"&gt;
unsubscribe or change your settings&lt;/a&gt; on codePlex.com.&lt;br&gt;
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com&lt;br&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>ush</author><pubDate>Fri, 16 Nov 2012 17:42:27 GMT</pubDate><guid isPermaLink="false">New Post: SSRS subreport not working  20121116054227P</guid></item><item><title>New Post: SSRS subreport not working </title><link>http://ssrsphp.codeplex.com/discussions/361380</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I'm having the same problem, my subreport link shows up in blue text, but it is just plain text and clicking on it does nothing.&amp;nbsp; Were you able to come up with a solution to this?&lt;/p&gt;
&lt;/div&gt;</description><author>mastercafe</author><pubDate>Thu, 15 Nov 2012 21:28:47 GMT</pubDate><guid isPermaLink="false">New Post: SSRS subreport not working  20121115092847P</guid></item><item><title>Created Issue: consumeReportingServices.php endlessly loading [10586]</title><link>http://ssrsphp.codeplex.com/workitem/10586</link><description>Good morning,&lt;br /&gt;I&amp;#39;m installing the demo adventureworks, everything seems to work until I &amp;#40;following the instructions&amp;#41; write on the browser the line&amp;#58; http&amp;#58;&amp;#47;&amp;#47;localhost&amp;#58;50001&amp;#47;consumeReportingServices.php.&lt;br /&gt;&lt;br /&gt;The browser starts loading and never ends. What I did wrong&amp;#63;&lt;br /&gt;</description><author>Jegor82</author><pubDate>Wed, 07 Nov 2012 11:02:33 GMT</pubDate><guid isPermaLink="false">Created Issue: consumeReportingServices.php endlessly loading [10586] 20121107110233A</guid></item><item><title>Source code checked in, #80132</title><link>http://ssrsphp.codeplex.com/SourceControl/changeset/changes/80132</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:49:39 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80132 20121001094939P</guid></item><item><title>Source code checked in, #80131</title><link>http://ssrsphp.codeplex.com/SourceControl/changeset/changes/80131</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:43:10 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80131 20121001094310P</guid></item><item><title>New Post: Does SSRS SDK support SQL Server 2008 (i mean non-express edition)???</title><link>http://ssrsphp.codeplex.com/discussions/354000</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I had the same problem..&lt;/p&gt;
&lt;p&gt;Adding the username and password fixed that problem for me:&lt;/p&gt;
&lt;p&gt;define(&amp;quot;SERVICE_URL&amp;quot;, &amp;quot;http://username:password@hostname/ReportServer/&amp;quot;);&lt;/p&gt;
&lt;p&gt;Also don't forget to edit the reporting service auth method.&lt;br&gt;
&lt;br&gt;
&amp;lt;AuthenticationTypes&amp;gt;&lt;br&gt;
&amp;lt;RSWindowsBasic/&amp;gt;&lt;br&gt;
&amp;lt;/AuthenticationTypes&amp;gt;&lt;br&gt;
&lt;br&gt;
In: C:\Program Files\Microsoft SQL Server \MSRS10.SQLEXPRESS\Reporting Services\ReportServer\rsreportserver.config&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;</description><author>mwillemse</author><pubDate>Fri, 29 Jun 2012 11:26:53 GMT</pubDate><guid isPermaLink="false">New Post: Does SSRS SDK support SQL Server 2008 (i mean non-express edition)??? 20120629112653A</guid></item><item><title>New Post: PHP SSRS no output?</title><link>http://ssrsphp.codeplex.com/discussions/361393</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Im using this code from the SSRS SDK for PHP User Guide.htm&lt;/p&gt;
&lt;p&gt;It should promt all the available reports, but I'm getting a blank page.&amp;nbsp; (no output)&lt;/p&gt;
&lt;p&gt;(there are reports available when I login (manually) with the useraccount which I'm using on the SSRS)&lt;/p&gt;
&lt;p&gt;(the connection seems to be right, bevause when I change the password for the user It gives me an error &amp;quot;Make sure that the url (http://***/ReportServer/) and credentials are correct!&amp;quot; )&lt;br&gt;
&lt;br&gt;
Can somebody help me figure out why im not getting any output?&lt;/p&gt;
&lt;p&gt;Client: Debian, Apache2 &amp;#43; php5&lt;br&gt;
Server: SSRS 2008&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&amp;lt;?php
error_reporting(E_ALL);
&lt;span style="color:blue"&gt;require_once&lt;/span&gt; &lt;span style="color:#a31515"&gt;'SSRSReport.php'&lt;/span&gt;;

define(&lt;span style="color:#a31515"&gt;&amp;quot;UID&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;***&amp;quot;&lt;/span&gt;);
define(&lt;span style="color:#a31515"&gt;&amp;quot;PASWD&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;***&amp;quot;&lt;/span&gt;);
define(&lt;span style="color:#a31515"&gt;&amp;quot;SERVICE_URL&amp;quot;&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;http://localhost/ReportServer/&amp;quot;&lt;/span&gt;);
&lt;span style="color:blue"&gt;try&lt;/span&gt;
{
    $ssrs_report = &lt;span style="color:blue"&gt;new&lt;/span&gt; SSRSReport(&lt;span style="color:blue"&gt;new&lt;/span&gt; Credentials(UID, PASWD), SERVICE_URL);
    $catalogItems = $ssrs_report-&amp;gt;ListChildren(&lt;span style="color:#a31515"&gt;&amp;quot;/&amp;quot;&lt;/span&gt;, true);
    $reports = &lt;span style="color:blue"&gt;array&lt;/span&gt;();
    &lt;span style="color:blue"&gt;foreach&lt;/span&gt; ($catalogItems &lt;span style="color:blue"&gt;as&lt;/span&gt; $catalogItem) {
       &lt;span style="color:blue"&gt;if&lt;/span&gt; ($catalogItem-&amp;gt;Type == ItemTypeEnum::$Report) {
           $reports[] = &lt;span style="color:blue"&gt;array&lt;/span&gt;(
                                &lt;span style="color:#a31515"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt; =&amp;gt; $catalogItem-&amp;gt;Name,
                                &lt;span style="color:#a31515"&gt;&amp;quot;Path&amp;quot;&lt;/span&gt; =&amp;gt; $catalogItem-&amp;gt;Path
                             );
        }  
    }
}
&lt;span style="color:blue"&gt;catch&lt;/span&gt; (SSRSReportException $serviceException)
{
    &lt;span style="color:blue"&gt;echo&lt;/span&gt; $serviceExcprion-&amp;gt;GetErrorMessage();
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>mwillemse</author><pubDate>Fri, 29 Jun 2012 11:19:33 GMT</pubDate><guid isPermaLink="false">New Post: PHP SSRS no output? 20120629111933A</guid></item><item><title>New Post: SSRS subreport not working </title><link>http://ssrsphp.codeplex.com/discussions/361380</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;span style="font-family:'Segoe UI','sans-serif'; color:black; font-size:10pt"&gt;I&amp;nbsp;am able to successfully install, configure call SSRS report using php.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:'Segoe UI','sans-serif'; color:black; font-size:10pt"&gt;However i am not able to find a way to call subreport. &amp;nbsp;My main report calls number of&amp;nbsp;other reports. Clicking on column calling subreport nothing&amp;nbsp;has happended.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:'Segoe UI','sans-serif'; color:black; font-size:10pt"&gt;I am stuck.. If anyone in this forum implement such functionality earlier, Please help
&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>viney00</author><pubDate>Fri, 29 Jun 2012 09:00:53 GMT</pubDate><guid isPermaLink="false">New Post: SSRS subreport not working  20120629090053A</guid></item><item><title>New Post: SSRS subreport not working </title><link>http://ssrsphp.codeplex.com/discussions/361379</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;span style="font-family:'Segoe UI','sans-serif'; color:black; font-size:10pt"&gt;I&amp;nbsp;am able to successfully install, configure call SSRS report using php.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:'Segoe UI','sans-serif'; color:black; font-size:10pt"&gt;However i am not able to find a way to call subreport. &amp;nbsp;My main report calls number of&amp;nbsp;other reports.&amp;nbsp; I am stuck.. If anyone in this forum implement such functionality,
 Please help &lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>viney00</author><pubDate>Fri, 29 Jun 2012 09:00:51 GMT</pubDate><guid isPermaLink="false">New Post: SSRS subreport not working  20120629090051A</guid></item><item><title>New Post: Where and what folder is referred to by </title><link>http://ssrsphp.codeplex.com/discussions/360472</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Got working!!! &amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>dgreatgnazzini</author><pubDate>Thu, 21 Jun 2012 18:52:09 GMT</pubDate><guid isPermaLink="false">New Post: Where and what folder is referred to by  20120621065209P</guid></item><item><title>New Post: Where and what folder is referred to by </title><link>http://ssrsphp.codeplex.com/discussions/360472</link><description>&lt;div style="line-height: normal;"&gt;
&lt;pre&gt;$renderAsHTML-&amp;gt;StreamRoot = &lt;span&gt;&amp;quot;./images/&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;Is this on the webserver?&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;SSRS gives me the following URL to access my reports&lt;/pre&gt;
&lt;pre&gt;http://MyServer/ReportServer     (Server URL)&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;and my report is at Reports/Report1&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;(REPORT URL)&lt;/pre&gt;
&lt;pre&gt;so the URL to my report is http://MyServer/ReportServer/Reports/Report1&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;Is the &amp;quot;./images/&amp;quot;   folder relative to my Server URL or Report URL?&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;I am using IIS.&lt;/pre&gt;
&lt;pre&gt;I have created a virtual directory on my server called Reports/images and will &lt;/pre&gt;
&lt;pre&gt;Try to make this work.&lt;/pre&gt;
&lt;pre&gt;&lt;br&gt;&lt;/pre&gt;
&lt;pre&gt;	&lt;/pre&gt;
&lt;/div&gt;</description><author>dgreatgnazzini</author><pubDate>Thu, 21 Jun 2012 13:52:15 GMT</pubDate><guid isPermaLink="false">New Post: Where and what folder is referred to by  20120621015215P</guid></item><item><title>New Post: Cannot html render chart</title><link>http://ssrsphp.codeplex.com/discussions/360381</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Tried your code.&lt;br /&gt;For some reason the function getPageURL() got an error message.&lt;/p&gt;
&lt;p&gt;Where is getPageURL() defined? &amp;nbsp;I am using IIS in Windows Server.&lt;/p&gt;
&lt;p&gt;Fatal error: Call to undefined method SSRSReport::getPageURL() in  C:\Dev2012\NxServer\Branches\Part3\htdocs\Source\Clinician\run\TestReport.inc on  line 581&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>dgreatgnazzini</author><pubDate>Wed, 20 Jun 2012 22:17:24 GMT</pubDate><guid isPermaLink="false">New Post: Cannot html render chart 20120620101724P</guid></item><item><title>New Post: Cannot html render chart</title><link>http://ssrsphp.codeplex.com/discussions/360381</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks for your input. &amp;nbsp;I am calling a SSRS report called MyChart.rdl that generates a chart.&lt;/p&gt;
&lt;p&gt;I can export it to Excel or PDF format OK but it will NOT render as XML inside my PHP page.&lt;/p&gt;
&lt;p&gt;It also works well within the SSRS reportServer application.&lt;/p&gt;
&lt;p&gt;Does your proposed fix address this?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;/div&gt;</description><author>dgreatgnazzini</author><pubDate>Wed, 20 Jun 2012 21:41:10 GMT</pubDate><guid isPermaLink="false">New Post: Cannot html render chart 20120620094110P</guid></item><item><title>New Post: Cannot html render chart</title><link>http://ssrsphp.codeplex.com/discussions/360381</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I haven't had to figure out the images part of it in a year or so.&amp;nbsp; I'd check the images URL versus where the image is saved on your end.&amp;nbsp; If the path exists and the images are saving there, they should show up unless you have permissions issues.&amp;nbsp;
 My guess is you're not running through the foreach streamids part or have an issue with that segment.&lt;/p&gt;
&lt;p&gt;Below is the example of my code, it's not exactly plug n play, but may give you something you missed?&amp;nbsp; It's not exactly &amp;quot;stock&amp;quot; either, but I don't think I left anything out from my source relating to images.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Might help?&amp;nbsp; Just look at the&lt;span style="color:blue"&gt; foreach&lt;/span&gt;($StreamIds
&lt;span style="color:blue"&gt;as&lt;/span&gt; $StreamId){ segment in the documentation, I think that's all you'd need.&lt;/p&gt;
&lt;p&gt;Good Luck.&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;		$rs-&amp;gt;SetExecutionParameters2($parameters);

		$renderAsHTML = &lt;span style="color:blue"&gt;new&lt;/span&gt; RenderAsHTML();
		$renderAsHTML-&amp;gt;ReplacementRoot = $rs-&amp;gt;getPageURL();
		$renderAsHTML-&amp;gt;StreamRoot = $baseurl.&lt;span style="color:#a31515"&gt;&amp;quot;reports/images/&amp;quot;&lt;/span&gt;;		
	
		$result_html = $rs-&amp;gt;Render2($renderAsHTML,
		                             PageCountModeEnum::$Estimate,
		                             $Extension,
		                             $MimeType,
		                             $Encoding,
		                             $Warnings,
		                             $StreamIds);
		
		$rand=&lt;span style="color:#a31515"&gt;&amp;quot;-&amp;quot;&lt;/span&gt;.substr(md5(mt_rand()), 0, 8);
		&lt;span style="color:blue"&gt;foreach&lt;/span&gt;($StreamIds &lt;span style="color:blue"&gt;as&lt;/span&gt; $StreamId){
		    $renderAsHTML-&amp;gt;StreamRoot = null;
		    $result_png = $rs-&amp;gt;RenderStream($renderAsHTML,
		                                $StreamId,
		                                $Encoding,
		                                $MimeType);
		                                
		$result_png = $result_png.&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;;
		$StreamId = $StreamId.&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;;
		$result_png = str_replace(&lt;span style="color:#a31515"&gt;&amp;quot;.jpg.jpg&amp;quot;&lt;/span&gt;,&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$result_png);
		$StreamId = str_replace(&lt;span style="color:#a31515"&gt;&amp;quot;.jpg.jpg&amp;quot;&lt;/span&gt;,&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$StreamId);
		$result_png = str_replace(&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$rand.&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$result_png);
		$StreamId = str_replace(&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$rand.&lt;span style="color:#a31515"&gt;&amp;quot;.jpg&amp;quot;&lt;/span&gt;,$StreamId);
		
		    &lt;span style="color:blue"&gt;if&lt;/span&gt; (!$handle = fopen($path.&lt;span style="color:#a31515"&gt;&amp;quot;reports/images/&amp;quot;&lt;/span&gt; . $StreamId, &lt;span style="color:#a31515"&gt;'wb'&lt;/span&gt;)){
		        &lt;span style="color:blue"&gt;echo&lt;/span&gt; &lt;span style="color:#a31515"&gt;&amp;quot;Cannot open file for writing output&amp;quot;&lt;/span&gt;;
		        &lt;span style="color:blue"&gt;exit&lt;/span&gt;;
		    }
		
		    &lt;span style="color:blue"&gt;if&lt;/span&gt; (fwrite($handle, $result_png) === FALSE){
		        &lt;span style="color:blue"&gt;echo&lt;/span&gt; &lt;span style="color:#a31515"&gt;&amp;quot;Cannot write to file&amp;quot;&lt;/span&gt;;
		        &lt;span style="color:blue"&gt;exit&lt;/span&gt;;
		    }
		    
		    &lt;span style="color:blue"&gt;fclose&lt;/span&gt;($handle);
		    
		}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;A bit further, where I'm just about to finalize result_html (the full report HTML).&amp;nbsp; I have like 20 preg_replaces for miscellaneous things, probably not the most efficient, but it works for a few hundred reports a day, haven't had complaints on images
 in a while.&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;	&lt;span style="color:blue"&gt;if&lt;/span&gt; ($new_images = preg_replace(&lt;span style="color:#a31515"&gt;'/src=&amp;quot;[^&amp;quot;]&amp;#43;?(TogglePlus|ToggleMinus|unsorted|sortAsc|sortDesc)\.gif&amp;quot;/i'&lt;/span&gt;, &lt;span style="color:#a31515"&gt;'src=&amp;quot;/reports/images/$1.gif&amp;quot;'&lt;/span&gt;, $result_html)) {
		$result_html = $new_images;}
		
	&lt;span style="color:blue"&gt;if&lt;/span&gt; ($new_images = preg_replace(&lt;span style="color:#a31515"&gt;'/(\/images\/)((?!\.gif|\.jpg|\.jpeg|\.png).*?)(&amp;quot;\/&amp;gt;)/i'&lt;/span&gt;, &lt;span style="color:#a31515"&gt;&amp;quot;/reports$1$2&amp;quot;&lt;/span&gt;.$rand.&lt;span style="color:#a31515"&gt;&amp;quot;.jpg$3&amp;quot;&lt;/span&gt;, $result_html)) {
		$result_html = $new_images;}
		
	&lt;span style="color:blue"&gt;if&lt;/span&gt; ($new_images = preg_replace(&lt;span style="color:#a31515"&gt;'/src=&amp;quot;[^&amp;quot;]&amp;#43;?(TogglePlus|ToggleMinus|unsorted|sortAsc|sortDesc)\.gif(.*?).jpg&amp;quot;/i'&lt;/span&gt;, &lt;span style="color:#a31515"&gt;'src=&amp;quot;/reports/images/$1.gif&amp;quot;'&lt;/span&gt;, $result_html)) {
		$result_html = $new_images;}&lt;br&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>kylorhall</author><pubDate>Wed, 20 Jun 2012 21:33:30 GMT</pubDate><guid isPermaLink="false">New Post: Cannot html render chart 20120620093330P</guid></item></channel></rss>