Dim app As New MSWord.Application
try
Dim doc = app.Documents.add
With Doc.PageSetup
.Orientation = 1 '页面方向:wdOrientPortrait--纵向,wdOrientLandscape--横向
'.PageWidth = MSWord.CentimetersToPoints(21) '纸张宽21cm
'.PageHeight =MSWord.CentimetersToPoints(29.7) '纸张高29.7cm
'.TopMargin = MSWord.CentimetersToPoints(2) '上边距2cm
'.BottomMargin = MSWord.CentimetersToPoints(1.5) '下边距1.5cm
'.LeftMargin = MSWord.CentimetersToPoints(2.5) '左边距2.5cm
'.RightMargin = MSWord.CentimetersToPoints(1.5) '右边距1.5cm
End With
这是word vba中可用的,但在ft中不能执行,请问如何改写才能执行。