Copy a worksheet from another worksheet.
bool wks_copy( Worksheet & wksDesc, const Worksheet & wksSrc, int nOption = CREATE_VISIBLE, DWORD dwCtrl = DCTRL_COPY_DEFAULT )
return true on success, else return false;
EX1
void wks_copy_ex1() { //make sure the active window is a workbook in current project Worksheet wks = Project.ActiveLayer(); if ( wks ) { Worksheet wksNew; wksNew.Create("Origin"); if ( wks_copy(wksNew, wks, CREATE_VISIBLE_SAME) ) printf("Success!"); else printf("Fail!"); } }
Copy a worksheet from another worksheet
origin.h