![]() |
Print from IE
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 |
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 |
Print from IE
That didn't work. I get the error "Object doesn't support this property or
method......" I'm basically trying to print a PDF document programmatically, and I'm not well versed in programming, so I just trying to find the easiest and most simple way. Any other ideas? Thanks for your help, Joel "Ken Slovak - [MVP - Outlook]" wrote in message ... 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 |
Print from IE
All I know is the object browser doesn't show any PrintOut method for IE,
only for documents. You might be better off in posting a question about IE programming in a group that handles that application. -- 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 ... That didn't work. I get the error "Object doesn't support this property or method......" I'm basically trying to print a PDF document programmatically, and I'm not well versed in programming, so I just trying to find the easiest and most simple way. Any other ideas? Thanks for your help, Joel |
All times are GMT +1. The time now is 02:25 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com