But how would you repeat the template from the previous page (including bookmarks)?
can I retrieve the document content when I first open the doc and then insert the whole shabang in the next page ?
Thanks
Peter
>
>#DEFINE wdPageBreak 7
>
>oWord = CREATEOBJECT("Word.Application")
>oWord.Visible = .T.
>oWord.Documents.Add()
>oWord.Selection.TypeText("Some Text" )
>oWord.Selection.InsertBreak(wdPageBreak)
>
>
>>I have a table with 175 names, addresses and 2 pictures(1956 and now)
>>I need to ceate a word doc with one page per person,
>>the template contains a table with 2 columns, the caption on the left, teh text on teh right
>>
>>the text is replaced from the dbf via bookmarks
>>Well this works fine for one page documents.
>>now at the end of the scan I wand to insert a pagebreak and create a new page from the template.
>>
>>But I dont seem to be able to do that.
>>
>>how could this be done?
Peter Cortiel