jayhutch6279
asked on
Help with Adobe Acrobat ActiveX Control
I am writing an app in VB6 an want to use the Acrobat ActiveX control, but I can't find any good documentation. I want to be able to drag items from a list box or combo box into text box items on a pdf. My problem is that I don't know where to drop the item. If anyone has any ideas, or knows where I can find some documentation, please let me know.
ASKER
I'm using the pdf.ocx. If the control only allows to read and preview, do you know of any way to drag from an app and drop onto a pdf?
ASKER
I figured this out on my own using examples from the SDK. Had to create a PDF object in a child mdi form. In the dragdrop event of the form, loop through each field to get the field name. Create a javascript field object and set it to the current field with the field name. Get the Javascript field bounding rectangle coordinates. If the X and Y coordinates returned by the dragdrop event are within the bounding rectangle coordinates, then that is the field you dropped on. Set the value of the field to whatever you dropped.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
AFAIK the control is only able to read and preview pdf file.
It is not intended to edit any pdf document.