Using Adobe Reader ActiveX control in Access 2010


i have access 2010 database containing records have individual associated pdfs.  have embedded adobe acrobat pdf reader control in form , created function load appropriate pdf using .loadfile method visible on same form database record.  when move new record want close file , clear control (as though had opened form) can't find method close/unload file.  how can please?

 

addition - i  have included additional references access db intellisense identified methods active x control (acropdf).  there no 'unload' or 'close' method though can see, unless there options execcommand method can use??

 

all gratefully received.  thanks.  dave

i don't know if best way or if works in access 2010, worked me in 2003 version. set enabled property false , true. here's code checks null in jobordernumber field:

 

on error goto errorhandler

jostr = me.jobordernumber

on error goto 0

on error resume next

...

errorhandler:

me.acropdf0test.enabled = false

me.acropdf0test.enabled = true

 

end sub



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support