Re: Win32ole & Adobe Acrobat Reader

Philippe L. wrote:

filename = “myfile.pdf”
Works great, thanks a lot! I’ll keep on trying the OLE way of
doing things: printing in the background could be useful too.

Here we are:

acrobat = WIN32OLE.new(‘AcroExch.App’)
doc = WIN32OLE.new(‘AcroExch.AVDoc’)
acrobat.show
doc.open(“c:\Program Files\Microsoft Space-Bearing
Paths\Are\Evil.pdf”, “ok”)
#doc.printpagesex(0, 0, false, true, true, false, true, true, true)
acrobat.exit

In order to discover the OLE Automation interfaces, I recommend this
ruby program:

http://homepage1.nifty.com/markey/ruby/win32ole/index_e.html

Does anyone know how to retreive and change the default printer maybe?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs