M
Mark Findlay
In the past, I have used vba (Javascript) from a webpage to auto-load a word
doc and print it from a web page, but now the task has grown in complexity:
Still using vba/javascript: I need to:
1) Read a database for certain fields (I know how to do that)
2) Open an existing MSWord doc (we'll call it Doc1) using vba/javascript: (I
can do that too)
.... this is where it gets more complicated:
3) Open a 2nd MSWord doc file (we'll call it Doc2) that will serve as a
'template'.
3a) This 'template' doc file has a header and a footer defined, that have
keywords in it to be replaced by the database fields read in step 1.
4) The main body content of the template file is to be the MSWord doc read
in step 2 above.
5) Save the 'template' doc (Doc2) to disk as a new filename so that the
template remains unchanged.
The idea here, is that the admin of the website wants to be able to take
MSWord docs that users have submitted, and place the documents into a
standardized format containing a custom header and footer so that all
documents adhere to a standard.
This is for an intranet where all users will be using IE6, and MS Office
2000 and 2003.
Thanks for any help you can provide!
Mark
doc and print it from a web page, but now the task has grown in complexity:
Still using vba/javascript: I need to:
1) Read a database for certain fields (I know how to do that)
2) Open an existing MSWord doc (we'll call it Doc1) using vba/javascript: (I
can do that too)
.... this is where it gets more complicated:
3) Open a 2nd MSWord doc file (we'll call it Doc2) that will serve as a
'template'.
3a) This 'template' doc file has a header and a footer defined, that have
keywords in it to be replaced by the database fields read in step 1.
4) The main body content of the template file is to be the MSWord doc read
in step 2 above.
5) Save the 'template' doc (Doc2) to disk as a new filename so that the
template remains unchanged.
The idea here, is that the admin of the website wants to be able to take
MSWord docs that users have submitted, and place the documents into a
standardized format containing a custom header and footer so that all
documents adhere to a standard.
This is for an intranet where all users will be using IE6, and MS Office
2000 and 2003.
Thanks for any help you can provide!
Mark