<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Alternative row color issue]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5101</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5101&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Alternative row color issue.]]></description>
		<lastBuildDate>Thu, 21 Aug 2014 19:19:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Alternative row color issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20528#p20528</link>
			<description><![CDATA[<p>nowrap / stretch may change font size to fit it in one line.<br />background of entire row may have to be addressed in the underlying pdf library otherwise.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 21 Aug 2014 19:19:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20528#p20528</guid>
		</item>
		<item>
			<title><![CDATA[Alternative row color issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20516#p20516</link>
			<description><![CDATA[<p>Hi,</p><p>I need to create alternative row color for all front accounting reports i can do that for each report but there is an issue like this:</p><p>if i have a employee name column in the report i will use something like this </p><p>&nbsp; &nbsp; $rep-&gt;SetFillColor(200, 200, 200);<br />&nbsp; &nbsp; $rep-&gt;lineHeight = 10;<br />&nbsp; &nbsp; $fill = 0;<br />&nbsp; &nbsp; while($row = db_fetch($employees))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $empname = $row[&quot;first_name&quot;].&quot; &quot;.$row[&quot;second_name&quot;].&quot; &quot;.$row[&quot;third_name&quot;].&quot; &quot;.$row[&quot;last_name&quot;];<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(0, 1, $row[&quot;employee_number&quot;],0,0,0,$fill);<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $row1 = $rep-&gt;row;<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextColLines(1, 2,&nbsp; $empname,0,0,0,$fill);<br />&nbsp; &nbsp; &nbsp; &nbsp; $next_row = $rep-&gt;row;<br />&nbsp; &nbsp; $rep-&gt;row = $row1;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(2, 3, $row[&quot;phone&quot;],0,0,0,$fill);<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(3, 4, $row[&quot;phone2&quot;],0,0,0,$fill);<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(4, 5, $row[&quot;email&quot;],0,0,0,$fill);<br />&nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;row = $next_row;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $fill = !$fill;<br />&nbsp; &nbsp; }</p><p>so because the employee name can be big text i use this method $rep-&gt;TextColLines(1, 2,&nbsp; $empname,0,0,0,$fill);<br />but the result is this</p><p>http://postimg.org/image/pqyk2medp/</p>]]></description>
			<author><![CDATA[null@example.com (xodaix)]]></author>
			<pubDate>Mon, 18 Aug 2014 17:51:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20516#p20516</guid>
		</item>
	</channel>
</rss>
