G
Ganeth
Hi all,
I'm going to start by talking about MS Access, but this is a Word question and relates to the Word VBA library.
The situation is I have a MS Access DB that will be running using the Access runtime environment. The application I'm developing is for a developing country, and therefore I cannot assume users will have Access or Word available. Developing the database is not a problem - there is a runtime version of Access and we have the budget to afford unlimited licenses for distribution. However, one of the outputs of the application needs to be a great variety of printed forms (tax returns, appeal applications, tax refund applications, etc) which all exist in Word format. Getting the DB to pull out data and programmatically write it to word documents is not a challenge - as long as the user has Word 2000 on their system. I'm doing it in a module in Access as below:
'get a load of data from the DB
dim wordObj as Object
Set wordObj = New Word.Application
wordObj.Visible = False
wordObj.Documents.Open "whateverTaxFormTheUserChooses.dot"
'programmatically search for placeholders in the tax form and replace with data from the DB
wordObj.Visible = True
'then print it, save it etc
Not a problem - BUT - can I still do this if my user does not have MS Word installed?
I've downloaded the Word Viewer, which is free and great so far as all that needs to be done is to open and print a document, but from what I can tell I won't be able to use it to generate documents on the fly like I'm doing above, so I guess my question is:
1) As long as I've got the appropriate libraries enabled in Access, can I still get at the classes I need to programmatically edit Word documents even if Word is not installed? (And then display them with the word viewer).
2) Do I have any other options?
Any advice from you knowledgable folks out there would be muchly appreciated.
Thanks,
Ganeth
I'm going to start by talking about MS Access, but this is a Word question and relates to the Word VBA library.
The situation is I have a MS Access DB that will be running using the Access runtime environment. The application I'm developing is for a developing country, and therefore I cannot assume users will have Access or Word available. Developing the database is not a problem - there is a runtime version of Access and we have the budget to afford unlimited licenses for distribution. However, one of the outputs of the application needs to be a great variety of printed forms (tax returns, appeal applications, tax refund applications, etc) which all exist in Word format. Getting the DB to pull out data and programmatically write it to word documents is not a challenge - as long as the user has Word 2000 on their system. I'm doing it in a module in Access as below:
'get a load of data from the DB
dim wordObj as Object
Set wordObj = New Word.Application
wordObj.Visible = False
wordObj.Documents.Open "whateverTaxFormTheUserChooses.dot"
'programmatically search for placeholders in the tax form and replace with data from the DB
wordObj.Visible = True
'then print it, save it etc
Not a problem - BUT - can I still do this if my user does not have MS Word installed?
I've downloaded the Word Viewer, which is free and great so far as all that needs to be done is to open and print a document, but from what I can tell I won't be able to use it to generate documents on the fly like I'm doing above, so I guess my question is:
1) As long as I've got the appropriate libraries enabled in Access, can I still get at the classes I need to programmatically edit Word documents even if Word is not installed? (And then display them with the word viewer).
2) Do I have any other options?
Any advice from you knowledgable folks out there would be muchly appreciated.
Thanks,
Ganeth