Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table in word, Colum width?
Message
From
23/10/2000 13:30:46
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00432936
Message ID:
00432999
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform