No announcement yet.

DDOC page 1 question

  • Filter
  • Time
  • Show
Clear All
new posts

  • DDOC page 1 question

    Adding new routine to old program using ddoc: After generating several pages in preview mode, is it possible to return to page 1 to add info before displaying report?

  • #2
    Using ddoc? AFAIK, no. Using "pure" API progamming? Maybe.

    You are asking in essence to 'undo' the underlying (WinAPI) "EndPage" call. (In ddoc that's the dpEndPage or maybe dpstartpage function. )

    I think maybe I'd create two (or three) separate documents....
    • Document page one (as it starts)
    • Document pages 2-n
    • Document page one (as modified)

    ... and control which is displayed when.

    The PB XPRINT family of functions may have something for you. Not sure if you can use the preview mode of XPRINT with PB/CC or not but someone here will know.

    For sure I'd try to find a way to avoid what you are asking. mAfter all, we were never able to change stuff that was already printed on a character or line printer.

    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]


    • #3
      Thanks, Michael. That is what I thought. If it were very important, I would figure out a different way to accomplish the task, but thought I would ask. This program has been running without a hitch since sometime around 2005 and I think I will leave it alone. If it ain't broke, don't fix it!