Is it posible to determine if you have it the end of a page then insert a pagebreak and add the title of the page again on the second page
or would i need to use bookmarks to the head and footer of the pages
any help would be appreciated i'm guesing there is a boolean endof thing for this as there is with the recordsets.
thanks in advance.

VB.net to word 2002 automation
Vitaly S.
i have some code i suspect would work dont have time to try it as i went with the using headers and footers option.
While
Not oDoc.Bookmarks.Item("\endofdoc").Range = oDoc.Range 'code to fill in the document End Whileno good to me now but i hope it can help some one else in the future :) any comments welcome i'm only a student so learning by taking onboard comments is the best way to learn more :).
thanks again all :) love these forums :)
NewbieDude
dont think that works endofdoc is the current end of text been entered not end of document sorry.
Didymus
Thanks yeah totally agree headers and footers are the easier root just enjoyed playing with the code and i thought i could get a better look of the document.
thanks for the links as well :).
Sarge1
I'd probably use headers and footers to do what it sounds like you want to do - that way the title is always on the top of the pages. Trying to detect and position text at the top of pages / inserting and removing page breaks etc. sounds like a lot of code to me.
Some areas which will probably have more info on achieving the Office automation results you are looking for are :
Office Automation: office.developer.automation newsgroup
http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en&cr=US
Or the Visual Tools for Office forums:
http://forums.microsoft.com/MSDN/default.aspx forumgroupid=4&siteid=1
These specifically deal with Office Product automation which is in essence what you are wanting to do.