Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Member BOOKMARKS does not evaluate to an object
Message
From
10/07/2007 07:31:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/07/2007 22:23:28
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01238769
Message ID:
01238820
Views:
12
>I am having strange problem with a new Word merge document. The document and the mail merge work fine on my computer but not on the customers. When the following line of code is executed:
>
>oRange = oDocument.Bookmarks["Location_Table"].Range()
>
>I get the following error message "Member BOOKMARKS does not evaluate to an object". I have checked the application and the word document they match. What could be causing this problem?
>
>Thanks in advance

First check if such a bookmark really exist:
if oDocument.Bookmarks.Exists("Location_Table")
 oRange = oDocument.Bookmarks["Location_Table"].Range
 *...
endif
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
Reply
Map
View

Click here to load this message in the networking platform