Re: Excel Spreadsheet copy formats

From: Date: Fri, 23 Apr 2004 13:29:51 +0000
Subject: Re: Excel Spreadsheet copy formats
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12093@lists.php.net to get a copy of this message
Hi! Daniel Kopp wrote: The short answer is: you can't. The Workbook must know of every Format that is being used in it, so you would need a special method for doing this. Something like: Format Workbook::cloneFormat(Format $f) I have no plans for doing this at the moment though. Sorry. Xavier ------------------------------------ > Is there a way to copy a format in Spreadsheet_Excel_Writer? > > What I want is: > > Format ... (eg. Bold with a certain bg) > > childFormat1 (with left border) > > childFormat2 (without border) > > childFormat3 (with right border) > > This would be great because this way I could change all 3 formats > at once and would not need to change each of them separately. (A > bit like in Word when I change standard font type - the formats > which are based on standard also change) > > Actually I am just looking for a way to copy all the > object-properties. I am sure that is possible - but - somehow I do > not know how ... To test posting by nntp and also because I wonder that nobody replied to this - I repost the request regards Daniel

« previous php.pear.general (#12093) next »