Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE from VFP3 to Microsoft Word!
Message
De
07/05/1998 08:18:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
OLE from VFP3 to Microsoft Word!
Divers
Thread ID:
00097617
Message ID:
00097617
Vues:
60
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 )---
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform