🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bu.localpostings
1 messages
1 total messages Started by Thomas Dauria Thu, 30 Dec 1999 00:00
Printing Word Docs From Access 2000( comp.databases.ms-access)
#148
Author: Thomas Dauria
Date: Thu, 30 Dec 1999 00:00
23 lines
1313 bytes
X-Orig-MsgId: <84gt1i$n91$1@news1.bu.edu>

I have the function below which worked perfectly well with
Access 97 and Word 97, but now when users on a machine with
Access 2000 and Word 2000 use this program it works the first
time but there after they can't execute the mail merge.  It
ends up saying that the original user still has the file open.

I don't understand the person manually shuts word down.  Anyway
here is the function pretty simple.

Public Sub printWordDocument(file_path As String)

    Dim wordApp As Word.Application
    Dim wordDoc As Word.Document
    Set wordApp = CreateObject("Word.Application")
    Set wordDoc = wordApp.Documents.Open(file_path)
    
    wordApp.Visible = True
    wordDoc.MailMerge.Destination = wdSendToNewDocument
    wordDoc.MailMerge.Execute
    
End Sub
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads