我想使用LtrPara()方法在Word文檔中設置從左到右的對齊方式。
不幸的是,它什麼也沒做,文字從RTL開始。任何想法?從RTL設置Word.Selection LTR
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是常態的文化設置中運行? – neontapir
是的。我的Word是默認RTL – user3041065