Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Automation & MS Word
Message
From
25/06/2003 06:55:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/06/2003 17:57:50
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00803546
Message ID:
00803681
Views:
8
>I am trying to send VFP data to a MS Word DOC by adding bookmarks to the word doc and using the Word objects Goto command to insert the VFP data into the doc. This works great unless the bookmark is in a Textbox. If the bookmark is in a Textbox I get an error 1429 'Word cannot find the requested bookmark'. Does anyone know how I can access the bookmark in the Textbox?? Any and all help is greatly appreciated.
>
>Thank You
>
>Ken Saldate
*#DEFINE wdCollapseStart 1	
*#DEFINE wdCollapseEnd 0	

with oWord
  .ActiveDocument.Bookmarks('BookMarkName').Select
  .Selection.Range.Collapse(0)
endwith
Positions the cursor at the end of bookmark (in a textbox or not).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform