Attach
Attach worksheet object to a real Origin worksheet
BOOL Attach( LPCSTR lpcszWksName )
TRUE if the worksheet exists; FALSE if the worksheet does not exist
EX1
// Attach worksheet to the first worksheet page in the Project. void Datasheet_Attach_Ex1() { Worksheet wks; WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return; if (wks.Attach(wp.GetName())) printf("Success to attach worksheet"); else printf("Fail to attach worksheet"); }
Attach to an Origin worksheet.
Column::Attach, MatrixObject::Attach
origin.h