fix 页眉左右位置问题
This commit is contained in:
@@ -1100,23 +1100,23 @@ export default {
|
||||
const oParagraphText = oHeaderText.GetElement(0)
|
||||
oParagraphText.AddText(Asc.scope.standCode)
|
||||
oParagraphText.SetPosition(-4)
|
||||
oParagraphText.SetJc('left')
|
||||
oParagraphText.SetJc('right')
|
||||
oParagraphText.SetFontFamily('黑体')
|
||||
let oHeader2Text = oSectionNext.GetHeader('default', true)
|
||||
const oParagraph20Text = oHeader2Text.GetElement(0)
|
||||
oParagraph20Text.AddText(Asc.scope.standCode)
|
||||
oParagraph20Text.SetPosition(-4)
|
||||
oParagraph20Text.SetJc('right')
|
||||
oParagraph20Text.SetJc('left')
|
||||
oParagraph20Text.SetFontFamily('黑体')
|
||||
let oFooterText = oSectionNext.GetFooter('even', true)
|
||||
const oParagraphFooterText = oFooterText.GetElement(0)
|
||||
oParagraphFooterText.SetPosition(3)
|
||||
oParagraphFooterText.SetJc('left')
|
||||
oParagraphFooterText.SetJc('right')
|
||||
oParagraphFooterText.AddPageNumber()
|
||||
let oFooter1Text = oSectionNext.GetFooter('default', true)
|
||||
const oParagraph20FooterText = oFooter1Text.GetElement(0)
|
||||
oParagraph20FooterText.SetPosition(3)
|
||||
oParagraph20FooterText.SetJc('right')
|
||||
oParagraph20FooterText.SetJc('left')
|
||||
oParagraph20FooterText.AddPageNumber()
|
||||
|
||||
const oRunStandENName = Api.CreateRun()
|
||||
|
||||
Reference in New Issue
Block a user