[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Win32OLE and PDF

Youssef Yelatia

1/7/2007 5:14:00 PM

Does anyone know how to use Win32OLE to connect to an opened pdf
document ?

I tried this acrobat

require "win32ole"
WIN32OLE.new('AcroExch.App')


but I got this error :

pdfEbook.rb:12:in `initialize': unknown OLE server: `AcroExch.App'
(WIN32OLERuntimeError)
HRESULT error code:0x800401f3
Invalid class string from

Any help is appreciated..

Thanks

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

1/7/2007 5:29:00 PM

0

On 1/7/07, Youssef Yelatia <yelatia@gmail.com> wrote:
> Does anyone know how to use Win32OLE to connect to an opened pdf
> document ?
>
> I tried this acrobat
>
> require "win32ole"
> WIN32OLE.new('AcroExch.App')
>
>
> but I got this error :
>
> pdfEbook.rb:12:in `initialize': unknown OLE server: `AcroExch.App'
> (WIN32OLERuntimeError)
> HRESULT error code:0x800401f3
> Invalid class string from
>
> Any help is appreciated..
>
> Thanks

Though I don't know the exact app name, try this:

1. there was a thread on starting acrobat through ole (the poster used
the same ID) maybe you can tyr his code - search for acrobat in the
archives

2. look for a thread named 'Ruby and COM' - somebody explains how to
find out what is the exact app name

Youssef Yelatia

1/7/2007 7:51:00 PM

0

Jan Svitok wrote:
> On 1/7/07, Youssef Yelatia <yelatia@gmail.com> wrote:
>>
>> pdfEbook.rb:12:in `initialize': unknown OLE server: `AcroExch.App'
>> (WIN32OLERuntimeError)
>> HRESULT error code:0x800401f3
>> Invalid class string from
>>
>> Any help is appreciated..
>>
>> Thanks
>
> Though I don't know the exact app name, try this:
>
> 1. there was a thread on starting acrobat through ole (the poster used
> the same ID) maybe you can tyr his code - search for acrobat in the
> archives
>
> 2. look for a thread named 'Ruby and COM' - somebody explains how to
> find out what is the exact app name

Thanks Jan,
I found the thread: http://www.ruby-...topic/88...

I'm reading it now


--
Posted via http://www.ruby-....