Tuesday, February 15, 2011

Problem with insertBitmap function PEAR - cakephp

Hi all,


          I am using PEAR classes to export my reports to excel i have some problem with open office wile exporting bitmap images.


i keep my PEAR files in /app/vendors/Pear

and my view file to export image to excel is

<?php

     $workbook = new Spreadsheet_Excel_Writer();

     $workbook->send('Search_Export.xls');

     $worksheet=&$workbook->addWorksheet('Export');

     $worksheet->setRow(0,50);

     $worksheet->setColumn(0,1,50);

    $worksheet->insertBitmap ( 0 , 5, '/tmp/shoprite1.bmp',0, 0, 1.25, 1);

    $workbook->close();

    exit();

?>

    The code i mention above is  good while working with MS Office (i am able to view the image). but problem with Open office i am not able to view image it is showing blank cell. Here i am using 24bit bitmap image (as per PEAR Instructions).

Any suggestions thank full.

Thanks &Regards

Rakesh

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate