Re: Tool Tip in pdf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's some code I use in FancyTable;

            for ($x=0; $x<count($w); $x++)
            {
                $text = wordwrap($row[$x], 90, "\n");
                $textArray = split("\n", $text);
                if (!empty($textArray[1]))
                    $newRow[$x] = $textArray[1];
                $this->Cell($w[$x],5,$textArray[0],'LR',0,'L',$fill);
            }
            $this->Ln(4);
            if (count($newRow) > 0)
            {
                for ($x=0; $x<count($w); $x++)
                {
                    $this->Cell($w[$x],5,$newRow[$x],'LR',0,'L',$fill);
                }
                $this->Ln();
            }

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Subhranil wrote:
> I am using fpdf.
>
>
>
> Micah Gersten wrote:
>   
>> Which PDF generator are you using?
>>
>> Thank you,
>> Micah Gersten
>> onShore Networks
>> Internal Developer
>> http://www.onshore.com
>>
>>
>>
>> Subhranil wrote:
>>     
>>> Hi Micah,
>>> Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I
>>> was
>>> out of work.
>>> I am a newbie. I have very little knowledge about pdf. Could you please
>>> give
>>> some tip for wraping the text
>>>
>>> Thanks,
>>> Subhranil. 
>>>
>>>
>>>
>>> Micah Gersten wrote:
>>>   
>>>       
>>>> Why not wrap the text?
>>>>
>>>> Thank you,
>>>> Micah Gersten
>>>> onShore Networks
>>>> Internal Developer
>>>> http://www.onshore.com
>>>>
>>>>
>>>>
>>>> Subhranil wrote:
>>>>     
>>>>         
>>>>> Hi all,
>>>>>
>>>>> I am creating a pdf where text size of cell is not fixed.
>>>>> My problem is if one text is too long than that cell then it overlap
>>>>> the
>>>>> next cell.
>>>>>
>>>>> I wish to show the part of the text which are loneger than cell size
>>>>> and
>>>>> put
>>>>> a tool tip on that cell which show the complete text.
>>>>>
>>>>> Is it possible ? Looking for any suggestion.
>>>>>
>>>>> Thanks,
>>>>> Subhranil.
>>>>>   
>>>>>       
>>>>>           
>>>> -- 
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>     
>
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux