kenan77 / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

line break within cell #200

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
II try the reader with the following code:

<?php
error_reporting(E_ALL ^ E_NOTICE);
require_once 'excel_reader2.php';
$data = new Spreadsheet_Excel_Reader("test.xls", false, "UTF-16");
?>
<!DOCTYPE HTML>
<html>
<body>
        <?php echo $data->val(15,'C'); ?>
</body>
</html>

With this I get the content of cell C15, but I don´t get the line breaks 
within the cell...

I already tried this:
<?php echo $data->val(15,'C'); $lfcr = chr(10) . chr(13); ?>

but it does´t work. I don't want to put a "<br>" in the excel file after one 
line, because the file should be the same file for Download...

How do I make it?

Hope someone could help me before I have to change to another reader...

Original issue reported on code.google.com by supp...@pl-concepts.de on 21 Jan 2015 at 9:28