Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow close acrobat window

johndeconinck
Participant
0 Kudos
214

Dear experts,

We have configured a workflow which opens an archivelink PDF document in an acrobat reader popup window, configured with OAA3. When the worflow finishes, we would like to automatically close this window. It looks to me this should be possible through transaction OAA4, but it is not clear to me how. You're thoughts or ideas are most welcome...

Many thanks,

John.

1 ACCEPTED SOLUTION

dirk_wittenberg
Contributor
0 Kudos
159

Hi John,

are you working with BOR-Objecttype IMAGE when openning the PDF-document?

IMAGE has a method DISPLAY and a method WINDOWCLOSE.

Regards,

Dirk

6 REPLIES 6

dirk_wittenberg
Contributor
0 Kudos
160

Hi John,

are you working with BOR-Objecttype IMAGE when openning the PDF-document?

IMAGE has a method DISPLAY and a method WINDOWCLOSE.

Regards,

Dirk

0 Kudos
159

Thanks a lot for you quick and very useful answer Dirk!

I indeed use the BOR IMAGE object. The Acrobat reader window is opening with the call of method 'IMAGEASSIGNEARLY' using a standard task. As for you indications, I created another task that calls the WINDOWCLOSE method, but I think the WindowsID is needed, which I don't see as parameter in IMAGEASSIGNEARLY. Do you have any idea where to get this?

Thank you very much,

John.

0 Kudos
159

I never pass a window-id to the method windowclose and it works in my workflows. If you look at the coding of the method windowclose you can see that a window-id is built using the key-fields of bor-objecttype Image if you pass no windowid.

Regards,

Dirk

0 Kudos
159

Hi Dirk,

Unfortunately it is not working yet. Maybe it is because the workflow is calling with the wrong OLE methods for Acrobat Reader. If you have any further ideas they would be most welcome.

Thanks and kind regards,

John.

0 Kudos
159

Hi John,

this is the configuration we are using, thou we're working the the Livelink Viewer not the Acrobat Reader:

Dirk

0 Kudos
159

Thanks a lot once again for your input Dirk. Unfortunately our customer is using Acrobat Reader, and I need to find the correct OLE application and methods for closing the window...

Kind regards,

John.