General information
Category:
COM/DCOM and OLE Automation
I have a table that has a general field called Docs for example. In this general field I have embedded a Word 97 document. Currently I have learned how to print a document using the following code:
range = "999"
from = "1"
to = "999"
oword = CreateObject("Word.Application")
WITH oword
.Documents.Open("C:\My Documents\MyDoc.doc")
.ActiveDocument.PrintOut(0,0,range,"",from,to)
.Quit
ENDWITH
My question is: How do I replace "C:\My Documents\MyDoc.doc" with the contents of my general field? I basically don't know how to reference the Word document that resides in my general field in order to print it.
Thanks A Lot!
Tom Welch
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only