Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Set margins in a word doc from VFP ??
Message
 
To
16/06/1998 11:48:31
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00108697
Message ID:
00109146
Views:
26
>Can somebody please tell me How to Set margins in a word doc from
>VFP ??
>
>I want to make the page to A4 size and set the top, bottom margins..

#DEFINE XTAB chr(9)

oWord = getObject("","word.basic")
oWord.fileNew()
oWord.filePageSetup(,,"0.7in","0.5 in", ".50 in", ".50 in",,,"6.0 in","8.0 in")
.07 is the top margin
bottom, left, right margins are next
6.0 is the page width
8.0 is the page length

TABS:
oWord.formatTabs("2.5 in",,,0,0,1,0,1,0,0)
parm 1 = position (0= left, 1= center, 2 = right)
parm 2 = ?
parm 3 = default tab
4 = align tabs
5 = leader (1 = '...')
6 = set 0 or 1
7 = clear 0 or 1
8 = clear all 0 or 1

Hope that gets you started!

Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform