WPS的JS宏设置页边距方法

/*页边距
页边距参数:上2.0cm,下2.0cm,左2.5cm,右2.5cm
*/    
    ActiveDocument.PageSetup.TopMargin = Application.CentimetersToPoints(2);
    ActiveDocument.PageSetup.BottomMargin = Application.CentimetersToPoints(2);
    ActiveDocument.PageSetup.LeftMargin = Application.CentimetersToPoints(2.5);
    ActiveDocument.PageSetup.RightMargin = Application.CentimetersToPoints(2.5);

猜你喜欢

转载自blog.csdn.net/qq_27866305/article/details/122011357
今日推荐