Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Bookmark error
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Bookmark error
Miscellaneous
Thread ID:
00880317
Message ID:
00880317
Views:
74
Hello All,
I'm using MS Word 97 and VFP7 to perform a very straightforward mailmerge, the problem I've got is this, when populating some form fields using this code
With oDoc
    .FormFields('txtmyfield1').result = 'whatever'
     ...
EndWith
all is well until I populate one of the fields with a This.SomeFormValue, at which point Word chokes and returns the error: 'Usual OLE error stuff', 'property Result is not a by reference property', if I populate the field with any other value , no problem, the form property I'm using varies in length from 10 chars to 500 ( approx ) and is in the following format, "1234567891 2222222222 2222211111" etc. Anyone ever experienced this ?

regards

Pete Kane
Regards,
Peter J. Kane



Pete
Reply
Map
View

Click here to load this message in the networking platform