thanks
When the Adobe Reader is installed on a machine, there is a registered
ActiveX object available (though Adobe does not support it for user
scripts, AFAIK). Michael Harris advised several weeks ago that this
object requires a host container, like IE, to function. He gave this
example of printing a PDF document ...
-------------------------------------------------------------------
The Acrobat Reader has to be hosted in a container window like a VB form
or an IE window...
set ie = createobject("internetexplorer.application")
ie.navigate "about:blank"
do until ie.readystate = 4 : wscript.sleep 10 : loop
set doc = ie.document
set pdf = doc.createElement(_
"<object id='pdf' " _
& " classid='clsid:CA8A9780-280D-11CF-A24D-444553540000'>")
doc.body.appendChild(pdf)
do until ie.readystate = 4 : wscript.sleep 10 : loop
pdf.src = "C:\your path\your.pdf"
pdf.PrintAll
do until ie.readystate = 4 : wscript.sleep 10 : loop
--
Michael Harris
Microsoft.MVP.Scripting
-------------------------------------------------------------------
The essence of this approach can be used to create an instance of the
PDF object for use in a web application, though I haven't played with
it yet. A good object viewer would give you some insight into the
properties and methods available.
I have also used the Wscript.Shell Run method to simply START a PDF
document in order to 'open' it with a stand alone script, something like
this ...
CreateObject("Wscript.Shell").Run "start " & sPathspecToPDF
But, started this way the script has no control (unless you call
throwing keystrokes at it via Sendkeys control).
Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/
Set ox = wscript.CreateObject("WScript.Shell")
ox.Run ("fullpathtofile.pdf")
"SWK" <BigSea...@yahoo.com> wrote in message
news:0e8901c0e497$a23a7ab0$b1e62ecf@tkmsftngxa04...
thanks
sk
.
Jason
"sk" <BigSea...@yahoo.com> wrote in message news:<072e01c0e875$8c1b7040$98e62ecf@tkmsftngxs05>...