<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Custom Header function]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2297&amp;type=atom" />
	<updated>2011-08-10T16:18:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2297</id>
		<entry>
			<title type="html"><![CDATA[Re: Custom Header function]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9948#p9948" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[evilive]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3549</uri>
			</author>
			<updated>2011-08-10T16:18:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9948#p9948</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Custom Header function]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9934#p9934" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[evilive]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3549</uri>
			</author>
			<updated>2011-08-09T14:11:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9934#p9934</id>
		</entry>
</feed>
