FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=15931&edit=1

ID: 15931
Updated by: daniel.oconnor@gmail.com
Reported By: josesalasg at gmail dot com
Summary: Rotation
Status: Open
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows XP
PHP Version: 5.2.8
Roadmap Versions:
New Comment:

Hey Jose, can you translate to English please?


Previous Comments:
------------------------------------------------------------------------

[2009-02-23 19:46:25] josesalasg

Description:
------------
Estimados al incluir la sentencia
$worksheet->setversion(8);

la sentencia setTextRotation() no funciona.

Favor su ayuda.

Test script:
---------------
<?
require 'Spreadsheet/Excel/writer.php';
$libro = new Spreadsheet_Excel_Writer();
$vertical =& $libro->addFormat();
$vertical->setBold();
$vertical->setFontFamily('ARIAL');
$vertical->setVAlign('bottom');
$vertical->setSize(8);
$vertical->setTextRotation(90);
$vertical->setBorder (1);


$cuadro =& $libro->addFormat();
$cuadro->setBold();
$cuadro->setFontFamily('ARIAL');
$cuadro->setVAlign('bottom');
$cuadro->setSize(8);
$cuadro->setBorder (1);

$libro->setversion(8);

$glosario5 =& $libro->addWorksheet("Glosario");
$glosario5->setLandscape();
$glosario5->setMargins(0);
$glosario5->setRow(1,40);
$valor =
"HOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLAHOLA";
$glosario5->write(1,1,"$valor", $cuadro);
$glosario5->write(2,2,"HOLA", $vertical);

$libro->send("GE_".$mes."_".$ano."_v(01).xls");
$libro->close();
?>

Expected result:
----------------
la linea

$glosario5->write(2,2,"HOLA", $vertical);

debiese mostrarla de forma vertical pero al agregar la linea

$libro->setversion(8); se muere.



Actual result:
--------------

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 1, '09 at 10:39p
activeMar 1, '09 at 10:39p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase