A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Print from IE



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 4th 07, 07:14 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default 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


  #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


  #3  
Old October 4th 07, 08:31 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default 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




  #4  
Old October 4th 07, 08:40 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change print preferences to print emails? cmsteiner90 Outlook - General Queries 2 October 24th 06 04:41 PM
Outlook memo for print - I want to only print 1 page JL Outlook - Using Forms 1 April 25th 06 12:52 AM
D-Link DP-301U print server will not print from Outlook, OE, or Firefox KLS Outlook - General Queries 2 March 22nd 06 11:52 AM
D-Link DP-301U print server will not print from Outlook, OE, or Firefox KLS Outlook Express 4 March 22nd 06 03:14 AM
Print Preview and Print Untyped messages dhknoxville Outlook - Installation 2 March 10th 06 03:51 PM


All times are GMT +1. The time now is 11:14 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-2025 Outlook Banter.
The comments are property of their posters.