Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merging Data into Word Document or Word RTF

Status
Not open for further replies.

George1111

Programmer
Aug 6, 2003
25
AU
I would like to be able to merge data into a Word/RTF document WITHOUT WORD popping up every time I do this - then I would like to print the resultant Document, again, WITHOUT word popping up.

Is this possible ?

I understand the other way (create object word.app) which causes word to pop up, but this creates a problem for the person using the computer when you have a "server" style program doing the merging and printing (being shared by the whole office).

 
Geroge,

Here's a sample of printing a Word doc like you want...
Code:
Sub printdoc()
    Dim doc As Document
    
    fname = "C:\Documents and Settings\metzgerc\My Documents\LineOfBalance\wmtlob1_mas.doc"
    Set doc = GetObject(fname, "Word.Document")
    doc.PrintOut
    doc.Close
    Set doc = Nothing
End Sub
Hope this helps :)

Skip,
Skip@TheOfficeExperts.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top