Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print pdf from website

I found out how to print from a directory -- I'm using the
following code:

ShellExecute GetForegroundWindow, "Print", _
"C:\My PDF Directory/File1.pdf", _
"", "", SW_SHOWMINNOACTIVE

Now my question, how would I do something similar for
printing a pdf file from a website? When I try to use
something similar to that above, I get nothing:

ShellExecute GetForegroundWindow, "Print", _
"http://www.centman.com/PDF/ValueInvAug2003.pdf", _
"", "", SW_SHOWMINNOACTIVE

If I substiture "Open" for "Print" the ShellExecute code
will open the document:

ShellExecute GetForegroundWindow, "Open", _
"http://www.centman.com/PDF/ValueInvAug2003.pdf", _
"", "", SW_SHOWSHOWMINNOACTIVE

I got desperate so I then tried using sendkeys to print it
once it was open using the following:
"http://www.centman.com/PDF/ValueInvAug2003.pdf", _
"", "", SW_SHOWSHOW
SendKeys "%P", True 'Quit
SendKeys "{~}", True


I would be truly grateful for any help.

thanks, Murray Williams
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Our new website Ewho Setting up and Configuration of Excel 0 February 8th 08 11:18 PM
Our new website Ewho New Users to Excel 0 February 8th 08 11:17 PM
Our new website Ewho Excel Discussion (Misc queries) 0 February 8th 08 11:17 PM
Our new website Ewho Charts and Charting in Excel 0 February 8th 08 11:17 PM
Website LLoraine Excel Discussion (Misc queries) 6 August 17th 07 06:34 AM


All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"