>CATEGORY PAGE(FROM-TO) >=============================== >DTR 1-20 >SOF 21-30 >JUI 31-46 >DET 47-76 >.....>Is any way to take the _pageno variable when report group is changing ?
Local lnStartPage, lcIndex, lcCrLf lcCrLf = CHR(13) + CHR(10) lnStartPage = 0 lcIndex = "CATEGORY PAGE(FROM-TO)" + lcCrLf + ; "===============================" + lcCrLf Select RepCursor REPORT FORM .... * Report * In the group On ENTRY _vfp.SetVar("lnStartPage", _PAGENO) * In the group On EXIT _vfp.SetVar("lcIndex", PADR(GroupName, 32) + ; TRANSFORM(lnStartPage) + " - " + TRANSFORM(lnStartPage)) + lcCrLf * In the summary band add field with expression lcIndex. * Make sure tha font is non-proportional, like Courier NewAlternatively, you can store page index info into the cursor instead of lcIndex variable.