WorksheetPage::ClearData

 

Description

Clear all worksheets' data.

Syntax

BOOL ClearData( DWORD dwOptions = CWOD_SHRINK_COLS )

Parameters

dwOptions
[input]Control bits, CWOD_*

Return

return TRUE on success and FALSE on failure.

Examples

EX1

void ClearData_Ex1()
{
    WorksheetPage wkbk("Book1");    // assumes that there exists an Excel window with the name "Book1"
    if ( !wkbk )
        return;
    if(wkbk.ClearData())
        out_str("data all clear");
    else
        out_str("data clear fail");
}

Remark

See Also

header to Included

origin.h