Thanks. I have not tested it yet, but this makes things much clearer. Previously I was not seeing the relationship between the doc, page and result variables, specifically how the result got into the doc. Now I see how the page is added to the doc and the result is rendered into it.
Thanks again,
Bryan