FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Pdf File in an ActiveX Control with Foxit
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Pdf File in an ActiveX Control with Foxit
Posted: Sat Nov 07, 2009 06: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.



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
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Re: Pdf File in an ActiveX Control with Foxit
Posted: Sun Nov 08, 2009 09: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Pdf File in an ActiveX Control with Foxit
Posted: Sun Nov 08, 2009 10:48 AM

Alvaro,

Thanks for sharing it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion