Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with formatting MS Word from VFP 6.0

Status
Not open for further replies.

aiden

Programmer
Apr 23, 2001
27
CA
Hi,

I'm trying to create some formfields (textboxes) in MS Word 2002 from VFP 6.0. I can create the textboxes where I want them. However, when I try to set the textinput properties, I get a 'Command failed' error even though the properties are successfully changed. Needless to say, I'm trying to eliminate the error message.

Here's the VBA code I copied from a Word Macro and the VFP Code I'm trying.

Any Suggestions? Thanks in advance.

VBA
With Selection.FormFields(1)
.Name = "txtRate_33"
With .TextInput
.EditType Type:=wdNumberText, Default:="", Format:="#,##0.00"
End With
End With

VFP 6.0
Selection.FormFields(1).TextInput.EditType(1,"","#,##0.00")

&&wdNumberText = 1
 
Post your question in the correct forum, now you're in the MS Foxpro (versions 1 through 2.6) forum.

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top