Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / May 2006

Tip: Looking for answers? Try searching our database.

Error when directly printing mailmerge document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don - 18 May 2006 23:10 GMT
Hello, I'm using  code to directly print a executed mailmerge document.  It
works fine on my machine but one user receives the following error "You
cannot send a catalog created by merging documents directly to mail, fax, or
a printer".  Also, when I use code to preview the merge document it's called
FormLetter on my machine, but on the other user's machine it's called
Catolog1.  Anyone know why this happens?  I've included by code below.

Thanks

Set objApp = CreateObject("Word.application")
    strTextFile = sSalesDirectory & "\tmpContract.txt"
    With objApp
          .Visible = True
          .Documents.Open strDocName
          strDocNameB = objApp.ActiveDocument.Name
         .ActiveDocument.MailMerge.OpenDataSource strTextFile
         .ActiveDocument.MailMerge.Destination = 1 'wdSendtoprinter
         .ActiveDocument.MailMerge.Execute
         .Documents(strDocNameB).Close 0
         .Quit 0
    End With
Peter Jamieson - 18 May 2006 23:18 GMT
best guess:
- you are opening a document whose name is stored in strDocName
- on one machine, this document is already set up as a mailmerge
catalog/directory type document; on the other machine, it's set up as a Fomr
Letters type merge document (the default merge type document) or a "Normal
Word Document".
- Using OpenDataSource wil not change an existing merge document type
unless it's "Normal Word Document", in which case the type will become, by
defualt, "Form Letters"
- when you merge to a new document, the name of the output document depends
on the merge type.

Peetr Jamieson

> Hello, I'm using  code to directly print a executed mailmerge document.
> It
[quoted text clipped - 20 lines]
>          .Quit 0
>     End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.