DDE

WiseImage supports interaction with other programs through its DDE interface (Dynamic Data Exchanging). Using DDE give access to the commands listed in the WiseImage script. The syntax of the commands is the same as in WiseImage script.

An example of DDE usage

This is an example of DDE usage for MS Excel VBA:
Sub Main()
Dim channelNumber As Long
‘ Connect to application
channelNumber = Application.DDEInitiate(“csapp”, “System”)
‘ Ask user for file
cmd = “[OpenDocument|FNAME|” & Chr(37) & “1]”
Application.DDEExecute channelNumber, cmd
‘ Save document with another name
cmd = “[SaveAsDocument|FileName|С:\Program Files\CSoft\WiseImage Pro 11\samples\ResavedThroughDDE.cws]”
Application.DDEExecute channelNumber, cmd
‘ Print document with current settings and closes WiseImage
cmd = “[RunPrinting|”“|”“][Exit]”
Application.DDEExecute channelNumber, cmd
‘ Close DDE connection
DDETerminate channelNumber
End Sub

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment