Pdf File in an ActiveX Control with Foxit

Pdf File in an ActiveX Control with Foxit

Postby alvaro533 » Sat Nov 07, 2009 6:40 pm

Following Enrico's post:

viewtopic.php?f=3&t=17255

I am trying to use Foxit to open a "pdf" file using activeX control within a FW window.

Image

Here is the documentation for the ocx:

http://foxit.vo.llnwd.net/o28/pub/foxit ... _guide.pdf

I have made a class to use it in FW and some examples. You can download here:

http://www.box.net/shared/b334b8nth9

There is no need to have Foxit installed in the computer, as the class installs only the ocx file (included in my download) and registers it. It is only 6 mb. I have seen that there is no need to unlock the ocx and works fine.

However, I cannot use some methods like "SetZoomLevel". Anyone know how to make it work?

Thank you,

Alvaro
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: Pdf File in an ActiveX Control with Foxit

Postby alvaro533 » Sun Nov 08, 2009 9:56 am

Now it works

http://www.box.net/shared/b334b8nth9

See "TFoxit.prg", if you use the guid {DB2189DF-ABF4-445A-A4E5-BF32F2CEA4D9} it works, but it shows "evaluation marks" on the top of the screen. The ocx is only 6 mb and files load very fast. One thing I don't like about acrobat reader is that it has more than 70 mb and it is very slow loading.

If you use the guid "FOXITREADEROCX.FoxitReaderOCXCtrl.1" there is not "evaluation marks", but you need to install freeware version 3.1 of foxit reader in your computer, some of the methods in the ocx don't work, but it is fine for the needs I have in my programs.

Regards,

Alvaro
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: Pdf File in an ActiveX Control with Foxit

Postby Antonio Linares » Sun Nov 08, 2009 10:48 am

Alvaro,

Thanks for sharing it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests