PasteData
Paste specified, tab-delimited text into a worksheet
BOOL PasteData( LPCTSTR lpcszText, int nRow = -1, int nCol = 0, int nRepaintMode = 0 )
TRUE for success, otherwise FALSE
EX1
//Paste specified, tab-delimited text into a worksheet. int Worksheet_PasteData_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return -1; Worksheet wks(wp.GetName()); string str = "1\t2\t3\r\n4\t5\t6"; //append from the first unfilled row of the worksheet. wks.PasteData(str); return wks.GetNumRows(); }
This member function is similar to paste text from clipboard into the worksheet
The data is tab delimited
origin.h