Salesforce

DDExec Function in Magic xpa Applications (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

DDExec Function in Magic xpa Applications (Magic xpa 3.x)

Objective

This technical note discusses the DDExec function and the differences between the DDE server/application versions.

Description

DDE programs that worked with previous versions of Microsoft Office may not work with newer versions of Office.

This is because of changes in DDE and Macros functionality and is not because of a problem with the Magic xpa functions on the client side.

Magic xpa includes the DDE functions as the client interface to the Windows application, such as Word and Excel. This means that Magic xpa only asks for services from the DDE server.

When moving from one Office version to another, the DDExec function may stop working, because of changes in the DDE server.

Solution

The solution is to use the appropriate commands and syntax for the server that you are using.

For example, if on old servers you have to use the Run command to execute a Macro, Office 2003 uses the Call command instead of the Run command.

For example: DDExec ('Winword','System','','[call Macro5]')

Instead of:

DDExec ('Winword','System','','[run "Macro5"]')

or

DDExec ('Winword','System','','[run Macro5]')

Full syntax and help can be found at the Microsoft Developer Network (MSDN).

Reference
Attachment 
Attachment