Save
Save current changes to the DataRange object.
bool Save( )
True for success; otherwise false.
Ex1
//Save current changes to the DataRange object. void DataRangeEx_Save_Ex1() { //assume the active workbooka sheet and has least four columns before run this code. Worksheet wks = Project.ActiveLayer(); if ( !wks ) { printf("Can not find any active worksheet!"); return; } DataRangeEx dr; dr.Create();//init the object dr.Add("X", wks, 0, 0, -1, 0); dr.Add("Y", wks, 0, 1, -1, 1); if(dr.Save()) out_str("Save datarange success!"); return; }
origin.h