Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE from VFP3 to Microsoft Word!
Message
From
07/05/1998 08:18:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
OLE from VFP3 to Microsoft Word!
Miscellaneous
Thread ID:
00097617
Message ID:
00097617
Views:
59
I'm new on the Forum so I really don't know if I publish this message in the right section. If I don't, just tell me and I will be glad. My problem is when I have created a table through OLE in Word I can't use the SetWidth command. Here is what i've tried:
VB Example: (created in Microsoft Word Macro)

Selection.Cells.SetWidth ColumnWidth:=CentimetersToPoints(7.5),
RulerStyle _
        :=wdAdjustNone

My try in VFP3:

appWord.Selection.Cells.SetWidth(appWord.CentimetersToPoints(5), 0)

And this errorcode is what I got:

OLE Error Code 0x80020005: Type mismatch
What's wrong? Can somebody help me?

/Mårten
---( Mårten Törnquist )---
Next
Reply
Map
View

Click here to load this message in the networking platform