D
Dale Fye
I'm trying to create a word document based on some data in an Access
database, and using some rather convoluted business logic. I don't want to
have to field a document template with my application, so I would like to
create this document from scratch, each time the user selects this option.
I've figured out the processes for opening Word (with either GetObject or
CreateObject), and creating a new document based on the normal template.
What I need to know now is how to:
1. Insert text into a blank document. I've found a couple of posts on how
to place bookmarks, and paste text at the bookmarks, but this is not possible
without sending the document template.
2. Format text as bold/underline (Would like to turn this on and off prior
to inserting some of the text), and then return the format to normal
3. Change the font and fontsize (again, would like to be able to do this
before inserting a block of text and turn it off at the end of the block)
4. Keep track of what line I am on in the document
5. insert a page break
Any help would be greatly appreciated.
database, and using some rather convoluted business logic. I don't want to
have to field a document template with my application, so I would like to
create this document from scratch, each time the user selects this option.
I've figured out the processes for opening Word (with either GetObject or
CreateObject), and creating a new document based on the normal template.
What I need to know now is how to:
1. Insert text into a blank document. I've found a couple of posts on how
to place bookmarks, and paste text at the bookmarks, but this is not possible
without sending the document template.
2. Format text as bold/underline (Would like to turn this on and off prior
to inserting some of the text), and then return the format to normal
3. Change the font and fontsize (again, would like to be able to do this
before inserting a block of text and turn it off at the end of the block)
4. Keep track of what line I am on in the document
5. insert a page break
Any help would be greatly appreciated.