Topic: Alternative row color issue

Hi,

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:

if i have a employee name column in the report i will use something like this

    $rep->SetFillColor(200, 200, 200);
    $rep->lineHeight = 10;
    $fill = 0;
    while($row = db_fetch($employees))
    {
        $empname = $row["first_name"]." ".$row["second_name"]." ".$row["third_name"]." ".$row["last_name"];
       
        $rep->TextCol(0, 1, $row["employee_number"],0,0,0,$fill);
       
        $row1 = $rep->row;
        $rep->TextColLines(1, 2,  $empname,0,0,0,$fill);
        $next_row = $rep->row;
    $rep->row = $row1;
       
        $rep->TextCol(2, 3, $row["phone"],0,0,0,$fill);
        $rep->TextCol(3, 4, $row["phone2"],0,0,0,$fill);
        $rep->TextCol(4, 5, $row["email"],0,0,0,$fill);
        $rep->row = $next_row;
       
       
        $fill = !$fill;
    }

so because the employee name can be big text i use this method $rep->TextColLines(1, 2,  $empname,0,0,0,$fill);
but the result is this

http://postimg.org/image/pqyk2medp/

Re: Alternative row color issue

nowrap / stretch may change font size to fit it in one line.
background of entire row may have to be addressed in the underlying pdf library otherwise.