Attach
Attach a Grid to a worksheet
BOOL Attach( Datasheet & wks, int nTable = -1 )
TRUE if success else FALSE.
EX1
void Grid_Attach_ex1() { Worksheet wks; wks.Create("origin"); Grid gg; if(gg.Attach(wks)) { Tree tr; tr = gg.GetFormat(FPB_ALL, FOB_ALL & ~FOB_RANGE_STYLE, TRUE, TRUE); out_tree(tr); } }
OriginObject::GetFormat
origin.h