Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert Word File
Message
From
28/05/2002 17:10:59
 
 
To
28/05/2002 14:42:46
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00661714
Message ID:
00662189
Views:
23
>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 	
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform