Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax with word template
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Syntax with word template
Miscellaneous
Thread ID:
00662872
Message ID:
00662872
Views:
51
I have a word template that I use to create letters from a vfp6 application. I have had great success with this recently. However, my current template has word "text boxes" on it. The following code works fine in my previous attempts:
NewRange = oWord.ActiveDocument.Content
With NewRange.Find
  .ClearFormatting
  .Forward = .T.
  .Text = "!lcActNbr!"
  .Execute
  If .Found
    NewRange.Text = ALLTR(ltrctr.act_nbr)
  EndIf
EndWith
But, trying to replace variables inside of text boxes is not happening. I presume I am just missing syntax here. Any help appreciated.
Thanks,
Kevin
Next
Reply
Map
View

Click here to load this message in the networking platform