Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Word File
Message
De
28/05/2002 17:10:59
 
 
À
28/05/2002 14:42:46
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00661714
Message ID:
00662189
Vues:
22
>Yeah, since writing the book, I've run into situations where bookmarks have been just the ticket. If I were writing it today, I'd cover them in more depth (though they're actually pretty easy to use).
>
It seemed a logical way of doing it. Here's what I basically did. Does this seem like a good approach to you?
WITH loWord
         WITH .selection
		.endkey(wdStory)
		.insertparagraphafter()	
	ENDWITH 
		.activedocument.bookmarks.add('intro')

         WITH .selection
		.endkey(wdStory)
		.insertparagraphafter()	
	ENDWITH 
		.activedocument.bookmarks.add('insertfile')

         WITH .selection
		.endkey(wdStory)
		.insertparagraphafter()	
	ENDWITH 
		.activedocument.bookmarks.add('table')
ENDWITH 		

WITH loWord.activeDocument
	.bookmarks('table').select
		WITH .application.selection
                      && do .insertafter stuff here
                      && and get out of table
		ENDWITH 	

	.bookmarks('insertfile').select
		WITH .application.selection
                      && do .insertfile here 
		ENDWITH 

	.bookmarks('intro').select
		WITH .application.selection
                      && do .insertafter stuff here 
		ENDWITH 
ENDWITH 	
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform