Hi Tom,
I seem to remember having a similar problem:
Have you tried putting the datawindow in "preview mode"? (dw_1.Modify("DataWindow.Print.Preview=Yes")
I think that might arrange your page numbering. Combined with:
(I suppose you already tried with) GroupCalc(), Sort(), and Setredraw(true). These commands will all recalculate the computed fields which are on the dw.
Not sure about the problem with saving as PDF (native?), it still seems buggy to me, but haven't tried that yet.
Sorry if it doesn't work out.
If I have some time I'll try to find my old code or make a small sample application.
(I guess you wouldn't have a sample app already?)
Regards,
Miguel