Home > database >  Vf control in the header
Vf control in the header

Time:09-26

How can use vf code control word page header, footer?

CodePudding user response:

In WORD recording macros, contrast WORDVBA help file write the code related content
I don't know the building Lord think how to control the header footer

CodePudding user response:

With mloword as word. Application
. The documents. The add () & amp; & Create a new document
. Activedocument. Pagesetup. Topmargin=0.50/0.035 & amp; & Set margins on
. Activedocument. Pagesetup. Bottommargin=0.2/0.035 & amp; & Set up on the next page margins
. Activedocument. Pagesetup. Leftmargin=0.31/0.035 & amp; & Set the left margins
. Activedocument. Pagesetup. Rightmargin=6.5/0.035 & amp; & Set the right margins
. Activedocument. Pagesetup. Pagewidth=23.5/0.035 & amp; & High Settings page
. Activedocument. Pagesetup. Pageheight=14/0.035 & amp; & Set the page size
. Activedocument. Pagesetup. Orientation=0 & amp; & A stand for page 2 for the page placed horizontally, instead of horizontal
. Activedocument. Pagesetup. Herderdistance=0.9/0.035 & amp; & Set the header
. Activedocument. Pagesetup. Footerdistance=0.75/0.035 & amp; & Set the footer
Error to run to the header, footer, please master to give help

CodePudding user response:

Herderdistance
Spelling mistakes
He a derdistance

CodePudding user response:

OWord=CREATEOBJECT (" Word. Application ")
WITH oWord
. The Documents. The Add
. The Visible=. T.
WITH. ActiveDocument. PageSetup
. TopMargin=oWord. CentimetersToPoints (1.5) & amp; & Cm can be converted into pounds
. BottomMargin=oWord. CentimetersToPoints (2.0)
. LeftMargin=oWord. CentimetersToPoints (0.31)
. RightMargin=oWord. CentimetersToPoints (6.5)
. PageWidth=oWord. CentimetersToPoints (23.5)
. PageHeight=oWord. CentimetersToPoints (14)
. The Orientation=1 & amp; & Horizontal longitudinal 0
. HeaderDistance=oWord. CentimetersToPoints (0.9)
. FooterDistance=oWord. CentimetersToPoints (0.75)
ENDWITH
ENDWITH

CodePudding user response:

 oWord=CREATEOBJECT (" Word. Application ") 
WITH oWord
. The Documents. The Add
. The Visible=. T.
WITH. ActiveDocument. PageSetup
. TopMargin=oWord. CentimetersToPoints (1.5) & amp; & Cm can be converted into pounds
. BottomMargin=oWord. CentimetersToPoints (2.0)
. LeftMargin=oWord. CentimetersToPoints (0.31)
. RightMargin=oWord. CentimetersToPoints (6.5)
. PageWidth=oWord. CentimetersToPoints (23.5)
. PageHeight=oWord. CentimetersToPoints (14)
. The Orientation=1 & amp; & Horizontal longitudinal 0
. HeaderDistance=oWord. CentimetersToPoints (0.9)
. FooterDistance=oWord. CentimetersToPoints (0.75)
ENDWITH
ENDWITH
  •  Tags:  
  • VFP
  • Related