copyTo method

This method copies a sheet and inserts it into current spreadsheet.

Defined in

Sheet

Syntax

public void copyTo(Sheet pre) throws SymphonyException
public void copyTo(Sheet sheet_pos, boolean beforeOrAfter) throws SymphonyException

Parameters

Sheet sheet_pos

Sheet. Specifies the position before or after which the new sheet is added. If this parameter is null, this method throws an exception.

boolean beforeOrAfte

Adds the new sheet before or after the sheet_pos, A value of true adds the new sheet before the sheet_pos. The default value is true.

See examples

Example: copyTo method