<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Line wrapping for long fields]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=329</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=329&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Line wrapping for long fields.]]></description>
		<lastBuildDate>Mon, 08 Sep 2008 07:07:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Line wrapping for long fields]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1096#p1096</link>
			<description><![CDATA[<p>Instead of using the class-member TextCol, you can use TextColLines. This will wrap the column. But you must keep track of the row counter yourself to get a nice layout. Ex.<br /></p><div class="codebox"><pre><code>Before:
$rep-&gt;TextCol(0, 1,    $myrow2[&#039;stock_id&#039;], -2);
$rep-&gt;TextCol(1, 2,    $myrow2[&#039;StockDescription&#039;], -2);
$rep-&gt;TextCol(2, 3,    $DisplayQty, -2);
$rep-&gt;TextCol(3, 4,    $myrow2[&#039;units&#039;], -2);
$rep-&gt;TextCol(4, 5,    $DisplayPrice, -2);
$rep-&gt;TextCol(5, 6,    $DisplayDiscount, -2);
$rep-&gt;TextCol(6, 7,    $DisplayNet, -2);
$rep-&gt;NewLine(1);
After:
$rep-&gt;TextCol(0, 1,    $myrow2[&#039;stock_id&#039;], -2);
$row = $rep-&gt;row;
$rep-&gt;TextColLines(1, 2,    $myrow2[&#039;StockDescription&#039;], -2);
$next_row = $rep-&gt;row;
$rep-&gt;row = $row;
$rep-&gt;TextCol(2, 3,    $DisplayQty, -2);
$rep-&gt;TextCol(3, 4,    $myrow2[&#039;units&#039;], -2);
$rep-&gt;TextCol(4, 5,    $DisplayPrice, -2);
$rep-&gt;TextCol(5, 6,    $DisplayDiscount, -2);
$rep-&gt;TextCol(6, 7,    $DisplayNet, -2);
$rep-&gt;row = $next_row;
$rep-&gt;NewLine(1);</code></pre></div><p>This will wrap the description nicely.<br />If you want to use the long description from the stock_master, you have to change the function get_customer_trans_details in the file /sales/includes/db/cust_trans_details_db.inc, line 5. You have to add the field long_description from stock_master table.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 08 Sep 2008 07:07:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1096#p1096</guid>
		</item>
		<item>
			<title><![CDATA[Line wrapping for long fields]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1095#p1095</link>
			<description><![CDATA[<p>How do I add lien wrapping when printing a long field?</p><p>In particular I would like to show the Item description in its full length on Sales orders, invoices, purchase orders, etc., even if the description exceeds the single line space provided.</p><p>Ideally I would eve like to have the option to print these documents with the long descritpion.</p><p>Any help (or even better updated reports) would be much appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (roger)]]></author>
			<pubDate>Mon, 08 Sep 2008 02:44:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1095#p1095</guid>
		</item>
	</channel>
</rss>
