Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line break within cell #200

Open
GoogleCodeExporter opened this issue Mar 27, 2015 · 0 comments
Open

line break within cell #200

GoogleCodeExporter opened this issue Mar 27, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 21 Jan 2015 at 9:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant