NYCPHP Meetup

NYPHP.org

[nycphp-talk] Spreadsheet/Excel/Writer.php

Dan Cech dcech at phpwerx.net
Wed Aug 10 09:51:37 EDT 2005


Mark,

I found the following snippet in the comments in Worksheet.php:

 > Convert the width of a cell from user's units to pixels. By
 > interpolation the relationship is: y = 7x +5. If the width hasn't been
 > set by the user we use the default value. If the col is hidden we use
 > a value of zero.

HTH,

Dan

Mark Withington wrote:
> Steve,
> 
> You were correct, setColumn() needs to be called to size the cells before
> any data is written to the worksheet.  Now the $M question....anyone know
> what the units are in setColumn?  Definitely not pixels.  Maybe a conversion
> ratio?
> 
> --------------------------
> Mark L. Withington
> PLMresearch
> v: 508-746-2383
> m: 508-801-0181
> Calendar: http://www.plmresearch.com/calendar.php



More information about the talk mailing list