www.critical-web.com

PDF HTML FlashPaper

cfExcelProxy | Methods | setCell

Method name: setCell

Returns: cfExcelProxy

Chainable: yes

Description: Sets a cell's value.

Possible Usages

newSheet( row=0, column=1, value="a simple value" )

Uses the row and column arguments (0-based index) to assign a value to a cell. In this example, the second column of the first row is set.

newSheet( cell="A2", value="another simple value" )

Uses the cell argument to assign a value to a cell. This method is much more user-friendly as it makes use of the same coordinates system than in Excel.

newSheet( cell="A2", value="last, but not least simple value", class="myClass" )

Sets a cell's value and applies a class to it. Make sure that the class requested exists by using the drawClasses() method or by creating it with newClass().