You can get the summary sheet by its index. The summary sheet index should be equal to the number of sheets in workbook NCONT2Pres. You may use the code like below to set values:
int num = NCONT2Pres!page.nlayers;
[NCONT2Pres]$(num)!Cell(nn+1, 1)$ = %(_ry);
[NCONT2Pres]$(num)!Cell(nn+1, 2) = 0;
See if it works.
James