Thread: Print from IE
View Single Post
  #2  
Old October 4th 07, 07:55 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Print from IE

Shouldn't the PrintOut() method only apply to the Document object in the
browser control? Does objWeb.Document.PrintOut() work?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Joel Allen" wrote in message
...
Hello,

From a custom form, I'm trying to print something from Internet Explorer.
All the code works except for the PrintOut. Can anybody give me some
pointers?

Set objWeb = CreateObject("InternetExplorer.Application")
objWeb.Navigate "\\tgps8\Documents\Company Documents-Public\Profilit
Info\Profilit Submittal Documents\2. Fact Sheet.pdf"
objWeb.Visible = True
objWeb.PrintOut

Thank you,
Joel


Ads