<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Add a page to sales order (rep109.php)]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4511</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4511&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Add a page to sales order (rep109.php).]]></description>
		<lastBuildDate>Thu, 06 Mar 2014 13:17:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=19417#p19417</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 06 Mar 2014 13:17:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=19417#p19417</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=19004#p19004</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jojobbing)]]></author>
			<pubDate>Thu, 16 Jan 2014 05:21:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=19004#p19004</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18806#p18806</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jojobbing)]]></author>
			<pubDate>Thu, 26 Dec 2013 09:50:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18806#p18806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18493#p18493</link>
			<description><![CDATA[<p><a href="https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis">Wiki</a>-ed it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 21 Nov 2013 15:59:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18493#p18493</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18408#p18408</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sun, 10 Nov 2013 16:20:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18408#p18408</guid>
		</item>
		<item>
			<title><![CDATA[Add a page to sales order (rep109.php)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18340#p18340</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jojobbing)]]></author>
			<pubDate>Wed, 06 Nov 2013 12:05:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18340#p18340</guid>
		</item>
	</channel>
</rss>
