Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: How to put Picture in a footer in PHPecxel report

$
0
0
Hello everyone when i tried this for a header it works but when i tried it for a footer it wont work can anyone help me how to make this work? I want the picture to be my footer can anyone help me with this please.
$objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddFooter('&C&G');
$objDrawing = new PHPExcel_Worksheet_HeaderFooterDrawing();
        $objDrawing->setName('PHPExcel logo');
        $objDrawing->setPath('images/footerpicture.png');
        $objDrawing->setHeight(36);
        $objPHPExcel->getActiveSheet()->getHeaderFooter()->addImage($objDrawing, PHPExcel_Worksheet_HeaderFooter::IMAGE_FOOTER_CENTER);

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>