Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update word bookmarks change alignment
Message
De
19/07/2009 07:22:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Update word bookmarks change alignment
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Application:
Desktop
Divers
Thread ID:
01413243
Message ID:
01413243
Vues:
100
Hi
Help please,

I have word documents - few paragraph with different alignments.

I want to update some bookmarks and vfp change the alignment as following:
oword = createobject("word.application")
with oword
	.visible=.t.
	oword.documents.open( "c:\wt\aa.doc") 
	oword.activedocument.saveas("newdoc")
	oword.activedocument.bookmarks("mydocdate").select
	.selection.text=dtoc(date()+25)&&Opss..........code change the alignment frrom left to right
	oword.activedocument.bookmarks("mtxtsum").select
	.selection.text="My new text5"
endwith
Thank you
Chaim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform