<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Logo in reports header]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6752</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6752&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Logo in reports header.]]></description>
		<lastBuildDate>Wed, 26 Apr 2017 16:34:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27740#p27740</link>
			<description><![CDATA[<p>Please read @joe&#039;s post. There is a need for Header3 instead of the standard Header1 that is used.<br />Study the custom reports and do likewise.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 26 Apr 2017 16:34:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27740#p27740</guid>
		</item>
		<item>
			<title><![CDATA[Re: Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27737#p27737</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The <strong>FrontReport</strong> class property <strong>$companyLogoEnable</strong> needs to be enabled. It is false by default in it&#039;s class method <strong>Info()</strong>.</p><p>In most if not all <strong>reporting/repXXX.php</strong> files there will be a line like:<br /></p><div class="codebox"><pre><code>$rep-&gt;Info($params, $cols, $headers, $aligns);</code></pre></div><p>Just change it to:<br /></p><div class="codebox"><pre><code>$rep-&gt;Info($params, $cols, $headers, $aligns, , ,  true);</code></pre></div><p>The actual prototype for it is:<br /></p><div class="codebox"><pre><code>function Info($params, $cols, $headers, $aligns,
        $cols2 = null, $headers2 = null, $aligns2 = null,
        $companylogoenable = false, $footerenable = false, $footertext = &#039;&#039;)</code></pre></div></blockquote></div><p>Thanks for your support.. <br />i tried it..&nbsp; <br />so i enabled $companyLogoEnable in the pdf_report.inc line 254 ====&gt; &nbsp; &nbsp; $companylogoenable = true, $footerenable = true, $footertext = &#039;&#039;)</p><p>i then used the find and replace to replace this code<br />$rep-&gt;Info($params, $cols, $headers, $aligns);<br />to this<br />$rep-&gt;Info($params, $cols, $headers, $aligns, , ,&nbsp; true);</p><p>but the reports stopped generating... <br />have i done something wrong ?? <br />&quot;i am using Version 2.3.25&quot;<br />Kind Regards.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Fri, 21 Apr 2017 09:28:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27737#p27737</guid>
		</item>
		<item>
			<title><![CDATA[Re: Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27733#p27733</link>
			<description><![CDATA[<p>A case insensitive search for the word <strong>companylogoenable</strong> shows that it is present only in <strong>reporting/includes/pdf_report.inc</strong> among the core FA files. The class member is populated inside the class method <strong>Info()</strong> only.</p><p>A similar search into the extensions shows that the custom report extensions set it from within the reports as in:</p><div class="codebox"><pre><code>rep_annual_balance_breakdown/reporting/rep_annual_balance_breakdown.php
rep_annual_expense_breakdown/reporting/rep_annual_expense_breakdown.php
rep_cash_flow_statement/reporting/rep_cash_flow_statement.php</code></pre></div><p>In the above files, the following code ensues:<br /></p><div class="codebox"><pre><code>..
..
$companylogoenable = true;
..
..
$rep-&gt;Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2, $companylogoenable, $footerenable, $footertext);
$rep-&gt;SetHeaderType(&#039;Header3&#039;);
..
..</code></pre></div><p>The dummy empty class method <strong>Header1()</strong> is present in <strong>reporting/includes/class.pdf.inc</strong> and not defined in the <em>pdf_report.inc</em> file.</p><p>The class method <strong>Header1()</strong> is defined in the TCPDF class in <strong>reporting/includes/tcpdf.php</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 21 Apr 2017 03:25:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27733#p27733</guid>
		</item>
		<item>
			<title><![CDATA[Re: Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27722#p27722</link>
			<description><![CDATA[<p>This is not straight possible, because the CompanyLogoEnable can only be set for custom reports, where the headertype is set to header3. The report headers other fields are different too.</p><p>Of course it is possible to use this in the standard headertype &#039;header1&#039; as well. You will have to change the /reporting/includes/pdf_report.inc file in the header1 memberfunction. You can look in header3 memberfunction how this is handled.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 17 Apr 2017 17:36:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27722#p27722</guid>
		</item>
		<item>
			<title><![CDATA[Re: Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27717#p27717</link>
			<description><![CDATA[<p>The <strong>FrontReport</strong> class property <strong>$companyLogoEnable</strong> needs to be enabled. It is false by default in it&#039;s class method <strong>Info()</strong>.</p><p>In most if not all <strong>reporting/repXXX.php</strong> files there will be a line like:<br /></p><div class="codebox"><pre><code>$rep-&gt;Info($params, $cols, $headers, $aligns);</code></pre></div><p>Just change it to:<br /></p><div class="codebox"><pre><code>$rep-&gt;Info($params, $cols, $headers, $aligns, , ,  true);</code></pre></div><p>The actual prototype for it is:<br /></p><div class="codebox"><pre><code>function Info($params, $cols, $headers, $aligns,
        $cols2 = null, $headers2 = null, $aligns2 = null,
        $companylogoenable = false, $footerenable = false, $footertext = &#039;&#039;)</code></pre></div><p>@joe: Should we not have a config file switch for it or atleast a preference setting on a per company basis?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 17 Apr 2017 11:57:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27717#p27717</guid>
		</item>
		<item>
			<title><![CDATA[Logo in reports header]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27705#p27705</link>
			<description><![CDATA[<p>Hello , <br />i been searching the forums and the wiki, and i got no easy way of doing it.. <br />i have uploaded a logo in the company setup.</p><p>how do i get it to appear in the header of the reports. ?? </p><p>Kind Regards</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Thu, 13 Apr 2017 22:08:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27705#p27705</guid>
		</item>
	</channel>
</rss>
