PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
setSelection - Spreadsheet_Excel_Writer

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message
ornitorrinco123



Joined: 29 May 2008
Posts: 2

PostPosted: Thu May 29, 2008 5:44 pm    Post subject: setSelection - Spreadsheet_Excel_Writer Reply with quote

Hi. I am using Spreadsheet_Excel_Writer 0.9.1.
And the function setSelection :
void setSelection( integer $first_row, integer $first_column, integer $last_row, integer $last_column)
don't select multicell, only one cell. Wath a doing wrong?
I want multicell select and manipulate the selection.

$libro =& new Spreadsheet_Excel_Writer();
$hoja =& $libro->addWorksheet("Lista Alumnos");
if (PEAR::isError($hoja)) {die($hoja->getMessage());}
.....
$hoja->write(2,2, "-- bla, bla --");
.....
$hoja->hideGridlines();
$hoja->setMarginRight(0.4);
$hoja->setMarginLeft(0.5);
$hoja->setMarginTop(0.4);
$hoja->setMarginBottom(0.4);
$hoja->select();
$hoja->setFirstSheet();
$hoja->setSelection(0,2,9,2);

$file = "lista.xls";
$libro->send($file);
$libro->close();

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement