>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement