Link to home
Start Free TrialLog in
Avatar of marting
marting

asked on

DDE syntax

I would like to know the syntax of the Explorer->view->options->...use dde.
If I look at excel, I see:

DDE Message:   [open("%1")]
Application:        Excel
DDE app not runing: <blank>
Topic:                system

Where is the DDE message documented and where can I learn about DDE.

Martin
ASKER CERTIFIED SOLUTION
Avatar of dew_associates
dew_associates
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marting
marting

ASKER

First, Thank you for taking the time to answer.

The first question was left unanswered: what is the
syntax in the windows95 dialog box for actions on
file types. Specifically I want to be able to combine
DDE commands in that dialog box. (open a word or pdf
document to a specific page for instance).

Avatar of marting

ASKER

First, Thank you for taking the time to answer.

The first question was left unanswered: what is the
syntax in the windows95 dialog box for actions on
file types. Specifically I want to be able to combine
DDE commands in that dialog box. (open a word or pdf
document to a specific page for instance).

Martin: Have you looked the the Knowledge Base Articles I gave you? Also, there should be a substantive readme file in the DDE SDK from Microsoft. Here's some that I found to give you an example.

SUMMARY
=======
You can use dynamic data exchange (DDE) to communicate directly with any version of Microsoft Word, including international versions. However, if the syntax of the macro commands in the international version is unknown, or if the DDE syntax used needs to communicate with multiple international versions, you must use the SendKeys command.
 
MORE INFORMATION
================
Although macros from one version of Word are translated automatically when a file moves from one version to another (for example, from English to German), you cannot send macro commands in "language-transparent" form to any version of Word for Windows.
 
If you send the following command to Word for Windows:
 
   FilePrint.NumCopies=2
 
the macro works correctly in the English version, but it does not work correctly in the German version. In the German version, the command must read as follows:
 
   DteiDruck.Exemplare=2
 
WORKAROUND
==========
You can send the SendKeys statements through DDE because they are part of the WordBasic language and are not translated for any language version. This provides access to any specific dialog box in any localized version of Word for Windows based on the keystrokes used to invoke the desired command.
 
To call FilePrint and print two copies of the active document in any language version of Word for Windows, use the following lines:
 
Word 6.0, 7.0
-------------
 
   SendKeys "%-{right}{down 11}{enter}2{enter}"
 
Word 2.0
--------
 
   SendKeys "%-{right}{down 10}{enter}"
   SendKeys "2"
 
Note: Word for Windows versions 1.x and 2.x differ in their menu
structure; therefore, to send the above command to any language version of Word for Windows version 1.x, use the following lines:
 
   SendKeys "%-{right}{down 7}{enter}"
   SendKeys "2"
 
Reference(s):
 
"Using WordBasic," by WexTech Systems and Microsoft, Chapter 5
 
"Word for Windows and OS/2 Technical Reference," Chapter 8