previousFormat::setSize (Previous) (Next) Format::setTextRotationnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Format::setTextWrap

Format::setTextWrap – Sets text wrapping

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

void Format::setTextWrap ( )

Description

Sets text wrapping

Note

This function can not be called statically.

Example

Using setTextWrap()

<?php

?>
previousFormat::setSize (Previous) (Next) Format::setTextRotationnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: alvaro@demogracia.com
Two notes about carriage returns in Microsoft Excel:

1. Line feeds are displayed as little squares unless the cell has the text wrap attribute. (The formula bar displays the correct value in all cases.)

2. Being picky, the end of line character should be 0x0A (\n). It's easy to fix that:

<?php
$value 
strtr($value, array(
    
"\r\n" => "\n",
    
"\r"   => "\n",
));
?>