<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Alternative row color issue]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5101&amp;type=atom" />
	<updated>2014-08-21T19:19:36Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5101</id>
		<entry>
			<title type="html"><![CDATA[Re: Alternative row color issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20528#p20528" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-08-21T19:19:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20528#p20528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Alternative row color issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20516#p20516" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[xodaix]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19381</uri>
			</author>
			<updated>2014-08-18T17:51:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20516#p20516</id>
		</entry>
</feed>
