0
添加邊框的話,我已經合併3個字的文件到一個Word中的Interop庫從vb.net
Dim wrdApp As New Word.Application
Dim docNew As Word.Document
docNew = wrdApp.Documents.Add
docNew.Range.InsertFile(b)
myRange = docNew.Paragraphs(docNew.Paragraphs.Count).Range
myRange.InsertParagraph()
myRange.InsertFile(c)
myRange = docNew.Paragraphs(docNew.Paragraphs.Count).Range
myRange.InsertParagraph()
myRange.InsertFile(d)
myRange = docNew.Paragraphs(docNew.Paragraphs.Count).Range
myRange.InsertParagraph()
現在我想添加邊框,字體。我曾嘗試使用以下代碼作爲保證金:
docNew.PageSetup.TopMargin = 50
docNew.PageSetup.BottomMargin = 50
docNew.PageSetup.LeftMargin = 50
docNew.PageSetup.RightMargin = 50
如何才能爲邊框和字體做些什麼?