Pages

Wednesday, September 23, 2009

Implement WorkSheet.Copy in \Classes\SysExcelWorksheet

This is how the method should be implemented:
public void copy(SysExcelWorksheet _before = null, SysExcelWorksheet _after = null)
{
    anytype before, after;
    ;

    if (_before)
        before = _before.comObject();
    else
        before = COMArgument::NoValue;

    if (_after)
        after = _after.comObject();
    else
        after = COMArgument::NoValue;

    worksheet.copy(before, after);
}

No comments: