Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to use Adobe Reader ActiveX (ACROPDF.DLL)
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Unable to use Adobe Reader ActiveX (ACROPDF.DLL)
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249741
Message ID:
01249741
Views:
353
I am trying to use Adobe Reader ActiveX control (ACROPDF.DLL) on a VFP form.

I have added the Adobe Reader ActiveX control by dragging it onto the form at design time. It appears inside an OleControl. I then set the Enable property .T. and the VISIBLE property .F.

In the Init event for the form, I call LoadFile() method of the control to give it the full pathname of a PDF file, and then set the Visible property of the control to .T., and refresh the form. (Incidentally, the LoadFile() call returns .F.)

At that point I get OLE errors apparently during the Paint method of the form. And the Reader never appears.

As a test, I have used the ActiveX Test container in VS2005, inserted that same control, invoked the LoadFile() method with that same PDF file, and it displays just fine.

What am I doing wrong?

Thanks,
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform