Open PDF

Hi

I am trying to open a PDF, with a button on a form using the get object, with no luck

Dim myDoc As Variant

Set mydoc = getobject(“fileparth")



mydoc.open

This is what I got out of the help files, and I know it is not working, any help would be grate :slight_smile:

Subject: RE: Open PDF

“A PDF” does not adequately describe what you’re trying to open. This is a file on your local hard disk?

“It is not working” does not adequately describe what it’s doing that you don’t like.

I don’t think any documentation of ours said that you could use an Open method on an Acrobat OLE object. You would have to consult the Acrobat OLE API documentation for that. From what I can see, there is no Open method in their API (http://www.adobe.com/devnet/acrobat/pdfs/iac_api_reference.pdf page 15).

You might think about using Shell to launch the file instead of OLE automation – unless you really need to do more than just open the document and then let the user take it from there.

If the above does not solve your problem, you might read the C R I S P Y document and consider its recommendations.

  • Andre Guirard, IBM/Lotus Development

Useful blog: Best Practice Makes Perfect