How to Perform a DDE Link with Word for WindowsLast reviewed: October 18, 1996Article ID: Q96352 |
The information in this article applies to:
SUMMARYThe following code example shows how to link Microsoft FoxPro for Windows to Microsoft Word for Windows. This code sets up the dynamic data exchange (DDE) link, opens a Word for Windows file (CONVINFO.DOC) that is installed with Word, and terminates the link. This is a good test for a DDE link and can be run through the Trace window in FoxPro for Windows.
RUN /N C:\WINWORD\WINWORD.EXE && Starts Word iCHANNEL= DDEInitiate("WinWord", "System") =DDEExecute (iCHANNEL,'[FileOpen"C:\WINWORD\CONVINFO.DOC"]') * Opens doc installed with Word =DDETerminate(iCHANNEL)This code does not close Word for Windows; it simply terminates the link between the two programs.
MORE INFORMATIONIf you are using FoxPro for Windows version 2.x, you can refer to the additional sample code in the FOXPROW\SAMPLES\DDE subdirectory.
REFERENCESWord for Windows "User's Guide," version 2.0, Chapter 42, "Using Macros" Word for Windows Help file, version 2.0, "WordBasic Programming Language" "Using WordBasic," Microsoft and Wextech Systems, Inc., Chapter 5, "Dynamic Data Exchange"
|
Additional reference words: 5.00 VFoxWin 3.00 FoxWin 2.50 2.50a WinWord
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |