<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add a page to sales order (rep109.php)]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4511&amp;type=atom" />
	<updated>2014-03-06T13:17:26Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4511</id>
		<entry>
			<title type="html"><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=19417#p19417" />
			<content type="html"><![CDATA[<p>Using HTML TCPDF conversion you have no control over e.g. dimensions of the generated page, so we do not use this function in FA (therefore you are on your own in this case).<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2014-03-06T13:17:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=19417#p19417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=19004#p19004" />
			<content type="html"><![CDATA[<p>why i can&#039;t use writeHTML function in this condition?<br />the PDF document does not generate successfully.</p><p>// just testing<br />&nbsp; &nbsp; &nbsp; &nbsp; // create some HTML content<br />&nbsp; &nbsp; &nbsp; &nbsp; $html = &#039;&lt;table border=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan=&#039;2&#039;&gt;testing 1,1 and testing 1,2&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 2,1&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 2,2&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // output the HTML content<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;writeHTML($html, true, false, false, false, &#039;&#039;);</p>]]></content>
			<author>
				<name><![CDATA[jojobbing]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=10137</uri>
			</author>
			<updated>2014-01-16T05:21:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=19004#p19004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18806#p18806" />
			<content type="html"><![CDATA[<p>i try to create a new header function called Header4() in pdf_report.inc and wants to call in rep109.php.</p><p>i add new function in rep109.php name print_tax_invoice(); calls under print_sales_orders(); </p><p>some difficulties i encounter was when i want to create table header with column and row span, so i think it&#039;s easier to use HTML table to create report. but when i write&nbsp; syntax html like &lt;table&gt;&lt;tr&gt;&lt;td&gt; and so on in the report, the progress bar keep continuing move back and forth unfinished. whereas when i NOT using &lt;table&gt; tags the result is ok. </p><p>for example (in rep109.php, function print_tax_invoice()):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;SetHeaderType(&quot;Header4&quot;); // i call Header4 here to create different header style<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;NewPage(0);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // just testing<br />&nbsp; &nbsp; &nbsp; &nbsp; // create some HTML content<br />&nbsp; &nbsp; &nbsp; &nbsp; $html = &#039;&lt;table border=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 1,1&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 1,2&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 2,1&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;testing 2,2&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // output the HTML content<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;writeHTML($html, true, false, false, false, &#039;&#039;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if ($email == 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;End($email);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; if ($email == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;End();</p>]]></content>
			<author>
				<name><![CDATA[jojobbing]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=10137</uri>
			</author>
			<updated>2013-12-26T09:50:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18806#p18806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18493#p18493" />
			<content type="html"><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis">Wiki</a>-ed it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-11-21T15:59:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18493#p18493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18408#p18408" />
			<content type="html"><![CDATA[<p>You will have to modify the fragment to:<br /></p><div class="codebox"><pre><code>// START my modification
$rep-&gt;SetHeaderType(&#039;&#039;);
$rep-&gt;NewPage();
/*
here i want to write predefined html report here 
*/
// END my modification</code></pre></div><p>And yes, FA use TCPDF class as pdf engine.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-11-10T16:20:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18408#p18408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add a page to sales order (rep109.php)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18340#p18340" />
			<content type="html"><![CDATA[<p>dear masters,</p><p>I need to add a page at the bottom of the sales order called a tax invoice.<br />I tried (in rep109.php) adding a line:</p><p>// START my modification<br />$rep-&gt;NewPage();<br />/*<br />here i want to write predefined html report here <br />*/<br />// END my modification</p><p>before the end of the script, exactly above</p><p>if ($ email == 1)<br />&nbsp; {<br />&nbsp; &nbsp; $ rep-&gt; End ($ email);<br />&nbsp; }<br />}<br />if ($ email == 0)<br />&nbsp; $ rep-&gt; End ();</p><p>the result is that there is a new page with the same format with the sales order, <br />but I want to create a new page with a blank format because I haven&#039;t write any script yet.</p><p>is there anyone that can give me guidance on how to realize my purpose.</p><p>I wonder if the functions used to create a report on the FA is wrapped tcpdf. is it true?</p><p>-jojo-</p>]]></content>
			<author>
				<name><![CDATA[jojobbing]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=10137</uri>
			</author>
			<updated>2013-11-06T12:05:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18340#p18340</id>
		</entry>
</feed>
