<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Custom Header function]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=2297</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2297&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Custom Header function.]]></description>
		<lastBuildDate>Wed, 10 Aug 2011 16:18:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Custom Header function]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9948#p9948</link>
			<description><![CDATA[<p>Sorry, I&#039;ve figured it out and it&#039;s quite simple. Wasn&#039;t thinking of it much when I post it yesterday. No wonder no one reply. <img src="https://frontaccounting.com/punbb/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (evilive)]]></author>
			<pubDate>Wed, 10 Aug 2011 16:18:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9948#p9948</guid>
		</item>
		<item>
			<title><![CDATA[Custom Header function]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9934#p9934</link>
			<description><![CDATA[<p><strong>My Situation :</strong><br />I&#039;ve created an extension called hr and it&#039;s working just fine. Have no problem hooking it up.</p><div class="codebox"><pre><code>../modules/hr/</code></pre></div><p>Then, I&#039;ve created a reporting directory and created &quot;reports_custom.php&quot; file. I put all of my newly created reports in this directory.<br /></p><div class="codebox"><pre><code>../modules/hr/reporting/
../modules/hr/reporting/reports_custom.php
../modules/hr/reporting/rep801.php    (to rep806.php)</code></pre></div><p>All of my reports have the following line :<br /></p><div class="codebox"><pre><code>$rep = new FrontReport(&#039;SALARY SLIP&#039;, &quot;SalarySlip&quot;, user_pagesize());
$rep-&gt;SetHeaderType(&#039;Header4&#039;);</code></pre></div><p>As you might figured out, I&#039;m using/calling my own header function called &quot;Header4&quot; and I place this function in FrontReport class(in pdf_report.inc file).<br /></p><div class="codebox"><pre><code>/reporting/includes/pdf_report.inc</code></pre></div><p><strong>So, what am I trying to achieve here :</strong><br />1. I don&#039;t want to touch/add/alter anything in any files/script that belong to FrontAccounting files.<br />2. I want to take off the &quot;Header4&quot; function and put it in my extension&#039;s reporting directory. The problem is I&#039;m lost on how to hook it up with FrontReport class. Is it possible?<br />3. There&#039;re functions to hook an extension; functions to hook customs report but couldn&#039;t find any function to hook custom report &quot;Header&quot;. Do enlight me.</p>]]></description>
			<author><![CDATA[null@example.com (evilive)]]></author>
			<pubDate>Tue, 09 Aug 2011 14:11:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9934#p9934</guid>
		</item>
	</channel>
</rss>
