Hi Stefan:
Just like Mike mentioned, I think you'd better use the matrixbase::CopyFromWks function. Like
void test()
{
int c1 = 1, c2 = 4, r1 = 2, r2 = 6;
Worksheet wks("Data1");
Matrix mat("Matrix1");
BOOL bRet = TRUE;
if(mat && wks)
bRet = mat.CopyFromWks(wks, c1, c2, r1, r2);
}
Where c1, c2, r1, r2 is the range specified.
Larry
OriginLab Technical Services