Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table in word, Colum width?
Message
De
23/10/2000 13:30:46
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00432936
Message ID:
00432999
Vues:
21
oCindy.FuriouslyScribblingInMargin("AutoFox")

Thanks, Della.



>The SetWidth method, as in many methods in Word, works only with points, regardless of how you've set Word's UI. Which is good, since we don't have to care about the user's settings, but it's not so good because I really can't relate to how big 196 points is . But there is a way...read on.
>
>>See if oTable.Columns(1).SetWidth=InchesToPoints(.95) or oTable.Columns(1).PreferredWidth=InchesToPoints(.95) works.
>
>These should work if you change "InchesToPoints(.95)" to "oWord.InchesToPoints(.95)". Even better, don't call Word's InchesToPoints method--it's really slow in comparison to VFP's math functions. The conversion is simple: there are 72 points in an inch. The following is much faster:
>
#DEFINE autoInches2Points 72
>oTable.Columns[1].SetWidth = .95 * autoInches2Points
>Now it's easy to see that you mean .95 inches, but Word gets the value it wants <s>.
>
>Hope this helps,
>
> - della Martin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform