Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dde with word 6.0
Message
De
28/07/1998 09:01:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Dde with word 6.0
Divers
Thread ID:
00121936
Message ID:
00121936
Vues:
54
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..."
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform