Force Word to Print from VB

cvenom

New member
Joined
Oct 29, 2008
Messages
1
Programming Experience
5-10
I have an application that I'm working on which takes email attachments from Outlook, and if they are a MS Word (.doc) document, open and print the file. The issue I'm running into is some of the attachments are not formatted correctly (for printing), and a prompt comes on the screen asking if I want to print anyways. I'd like to avoid this prompt, by forcing the file to print, regardless of it's formatting. Is there a way to tell Word to print regardless of any formatting issue, without human/manual intervention?

NOTE - I should note here that the documents received are usually from a template, that our customer uses, so the formatting is a minor issue, and does not affect the way it prints, when done manually. So overriding the warning is not an issue.
 
Using Word automation there is a DisplayAlerts property for the Word.Application object, I haven't tried it but you should.
 
Back
Top