SetColFormats
Sets the column formats in a worksheet.
BOOL SetColFormats( LPCSTR lpcszFormats, BOOL bRepeat = TRUE )
TRUE on success, FALSE on failure.
EX1
// the following code will set column formats in a new worksheet // 1st column - Numeric (0) // 2nd column - Text (1) // 3rd column - Time (2) // 4th column - Date (3) // 5th column - Text and Numeric (9) void Worksheet_SetColFormats_Ex1() { Worksheet wks; wks.Create("origin", CREATE_VISIBLE); wks.AddCol(); wks.AddCol(); wks.AddCol(); string strFormats="01239"; wks.SetColFormats(strFormats); }
Worksheet::GetColFormats
origin.h