Excel::Template::Element::Cell - Excel::Template::Element::Cell
To actually write stuff to the worksheet
This is the text to write to the cell. This can either be text or a parameter with a dollar-sign in front of the parameter name.
Optionally, you can specify which column you want this cell to be in. It can be either a number (zero-based) or an offset. See Excel::Template for more info on offset-based numbering.
Sets the width of the column the cell is in. The last setting for a given column will win out.
This allows you to specify what write_*() method will be used. The default is to call write() and let Spreadsheet::WriteExcel make the right call. However, you may wish to override it. Excel::Template will not do any form of validation on what you provide. You are assumed to know what you're doing.
The legal types (taken from Spreadsheet::WriteExcel) are:
q.v. Spreadsheet::WriteExcel for more info.
This will consume one column in the current row.
<cell text="Some Text Here"/> <cell>Some other text here</cell> <cell text="$Param2"/> <cell>Some <var name="Param"> text here</cell>
In the above example, four cells are written out. The first two have text hard-coded. The second two have variables. The third and fourth items have another thing that should be noted. If you have text where you want a variable in the middle, you have to use the latter form. Variables within parameters are the entire parameter's value.
Please see Spreadsheet::WriteExcel for what constitutes a legal formula.
Rob Kinyon (email@example.com)