【发布时间】:2014-01-04 04:53:25
【问题描述】:
我想使用 LtrPara() 方法在 Word 文档中设置从左到右对齐。
不幸的是,它什么也没做,文本来自 RTL。有什么想法吗?
Microsoft.Office.Interop.Word.Document wordDoc = null;
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
wordDoc = wordApp.Documents.Add(ref defaultTemplate, ref missing, ref missing, ref missing);
//make a word selection object
Microsoft.Office.Interop.Word.Selection selection = wordApp.Selection;
selection.LtrPara();
提前致谢!
【问题讨论】:
-
是否有我们应该注意的区域设置?例如,您是否在以 RTL 为规范的文化环境中运行?
-
是的。我的 Word 是默认 RTL
标签: c# office-interop cultureinfo