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

New Post: Read Rich Text from Excel 2007 Cell

$
0
0
Ok, you're right. With this code, there's no fatal error...

My Code from my first post:
        $objReader = PHPExcel_IOFactory::createReaderForFile('descriptions.xlsx');
        $objPHPExcel = $objReader->load('descriptions.xlsx');
        $objPHPExcel->setActiveSheetIndex(0);
        $sheet = $objPHPExcel->getActiveSheet();
        $cell = $sheet->getCellByColumnAndRow(3,3);
        if ($cell->getValue() instanceof PHPExcel_RichText) {
            echo "success!";
        }
        echo "no =(";
The Output is everytime "no =(" and that's my problem. $cell->getValue() is never an instance of PHPExcel_RichText.

Viewing all articles
Browse latest Browse all 2707

Trending Articles



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