用VBA方式InsertFile合成Word文档的问题
用VBA方式InsertFile合成Word文档,合成后的文档打开后,视图格式设成“页面”,文档的左边始终有一片空白(文档已经设成左对剂了),如何解决这个问题
objFormat = docs.GetType().InvokeMember("ParagraphFormat", System.Reflection.BindingFlags.GetProperty, null, section, null);
docs.GetType().InvokeMember("Alignment", System.Reflection.BindingFlags.SetProperty, null, objFormat, new Object[] { 0 });
docs.GetType().InvokeMember("InsertFile", System.Reflection.BindingFlags.InvokeMethod, null, section, new Object[] { strRtfPath });