Hi Jeff,
I have written an example below. It shows you how to copy Row 11 to 23 of the first column of the Data1 worksheet to the 1st column of the Data2 worksheet. Maybe you can rewrite it as you need.
void test6710()
{
Worksheet wksSrc("Data1"); // Create Origin C Worksheet object and attach to Origin Data1 worksheet
Dataset dsSrc; // Create unattached Dataset object
dsSrc.Attach(wksSrc, 0); //Attach to the first column of Data1
Dataset dsCopy( dsSrc); //Make a copy of the source data
dsCopy.SetLowerBound(10); //From Row 11
dsCopy.SetUpperBound(22); //To Row 23
dsCopy.TrimLeft(TRUE);
Worksheet wksDst("Data2");
Dataset dsDst; // Create unattached Dataset object
dsDst.Attach(wksDst, 0); //Attach to the first column of Data2
dsDst = dsCopy;
}
Deanna
OriginLab Technical Services