Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dde with word 6.0
Message
From
28/07/1998 09:01:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Dde with word 6.0
Miscellaneous
Thread ID:
00121936
Message ID:
00121936
Views:
55
This works fine in FoxPro 2.6, but with Visual 5.0, instead of opening the document and running a macro, it loads Word, and opens Document1 and stops as if there is no more code.
=ddesetoption('SAFETY', .F.)
ichannel = DDEINITIATE("WinWord", "System")
	IF ichannel=-1
		RUN /N c:\winword\winword.exe
		ichannel = DDEINITIATE("WinWord", "System")
		ask=.F.
	ENDIF
		= DDEEXECUTE(ichannel, "[AppMaximize 1 ]")
		= DDEEXECUTE(ichannel, '[FileOpen "g:\fox\thedoc.doc", .readonly=1]')
		= DDEEXECUTE(ichannel, "[MailMergeToDoc]")
		= DDEEXECUTE(ichannel, '[ToolsMacro .Name="tradedegree", .run]')
"Live Well, Laugh Often, Love Much..."
Next
Reply
Map
View

Click here to load this message in the networking platform