Word MailMerge does not show print setup dialog

Word MailMerge does not show print setup dialog

Post by Bogdan B » Wed, 12 May 2004 20:31:19


I succesfully used MailMerge to create documents filled with data. But,
since Office XP, the client have lost the ability to select a printer of
their choice
because the print dialog does not show up.

The "engine" works with some template documents, and a RTF document
containing the data.

So, my question is, how can I force Word to show the print dialog when the
Destionation of the
MailMerge document is the printer ?

I tried to make a new document with the results of the mail merge, but,
unfortunately, the only
way to get a print dialog is to execute the document's PrintPreview method,
and my clients does not
accept this.

Can you help me ?

Thanks in advance,

1. Do not get print dialog box in Word; cannot print from Word

2. Word MailMerge and bypassing the Print dialog box


I am doing a mail merge with Word and it works very well... as long as the
user clicks OK in the Print dialog box. How can I specify that not only I
want the Merge.Destination to be wdSendToPrinter, but I want it sent to the
printer without the dialog box opening. Here is my code:
oWord := CreateOLEObject('word.application');
oWord.Visible := false;
oDocument := oWord.ActiveDocument;
oMerge := oDocument.MailMerge;
oMerge.MainDocumentType := wdFormLetters;
oMerge.Destination := wdSendToPrinter
oMerge.MailAsAttachment := False;
oMerge.MailAddressFieldName := '';
oMerge.MailSubject := '';
oMerge.SuppressBlankLines := True;
oMerge.DataSource.FirstRecord := wdDefaultFirstRecord;
oMerge.DataSource.LastRecord := wdDefaultLastRecord;
// The Execute command is not finished executing that the Print dialog
box opens....

I found that the printing is being done with the Application.PrintOut...
but where would i put it?
Thanks in advance for any help.


3. Persistent Print Job which ONLY shows within MS Word Print Dialogue

4. the print dialog box does not show up when i click the print icon

5. Crash when showing print setup dialog from Windows forms

6. automating word mailmerge from vb.net - and word 2002 dialog popup problems

7. Some querries not showing in Word Mailmerge

8. Word 2003: Display the Print Setup dialogue box in code

9. Word 2003: display Print Setup dialogue

10. Word, mailmerge problem.{MERGEFIELD "First_Name"} prints, not

11. Word, mailmerge problem.{MERGEFIELD "First_Name"} prints, not nam.

12. zipcode formatted in Excel (w+4) will not print in Word mailmerge

13. display print preview dialog, not print dialog

14. how to show ms-word's print dialog programatically ?

15. Printing in Word - Print icon works, Print link under File doe