Share via


Running an Active Document Sample

The Visual FoxPro Solutions Sample application includes a sample named "Create Active Documents for the web" that demonstrates many of the Active Document features.

To run the Solutions Sample application

  • Enter the following in the Command window:

    DO (HOME(2) + 'solution\solution')
    

     – Or – 

  1. From the Program menu, choose Do.
  2. Choose the \Vfp7\Samples folder.
  3. Double-click Solution.app.

To run the "Create Active Documents for the web" sample

  1. After starting Solution.app, click New Features for Visual FoxPro.
  2. Click Create Active Documents for the web and then click the Run Sample button.

The "Create Active Documents for the web" sample makes it possible for you to open a project that contains all of the files necessary to create an Active Document from the project. When the project is open, you can examine the code in the Actdoc class to see how Active Document events are managed and how forms are run. Note that Actdoc, a class based on the ActiveDoc base class, is set as the main file in the project. An Active Document must have a class based on the ActiveDoc base class as its main file.

You can also create an Active Document from the project by choosing Build in the Project Manager. After the Active Document is built, choose Run Active Document from the Tools menu to run the Active Document.

See Also

Active Document Security | Interoperability and the Internet | Running Active Documents | Active Documents