Use the ActiveX with Visual FoxPro.

Because Visual FoxPro does not import the constants definitions
from the VPE  ActiveX, the header file VPE.H should be included
in your applications. 

Here you can find a small demo that shows the basic usage of the ActiveX.
It is important, that you set the "Visible" property to FALSE, if
the preview window is external (property ExternalWindow = TRUE).

NOTE: YOU NEED TO RECOMPILE THE DEMO BEFORE RUNNING IT!

This project is mostly identical to the VB demo, but some special
features for VFP have been added (Test with a very long memo)


If you get an error "Error loading OLE Object...", then this means,
that you have a different version of VPE installed, as the one used
to build the demo form. VFP stores the OLE version info in its forms 
and doesn't load an earlier version. In this case just open the form, 
ignoring the error. Then add a new VPE object (Ole Control), and set
the following properties: 

	NAME = "VPE1" 
	VISIBLE = .F.


If you create your own form, please note that you need to include the file "vpe.h":
in the Project Manager, with the form open, click on the menu "Form" and select
"Include File...", then choose "vpe.h".


=======================
!!! IMPORTANT NOTES !!!
=======================

* For Visual FoxPro 6.0 the Service Pack 2 or higher is required!!!

* To make Visual FoxPro process all VPE events, and to prevent getting sporadic "OLE Exception Error"
  messages, you need to set in VFP the system variable "_VFP.AutoYield = .F."
