Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document oDocument = new Microsoft.Office.Interop.Word.Document();
oDocument = oWord.Documents.Add();
Microsoft.Office.Interop.Word.MailingLabel oLable = oWord.MailingLabel;
oDocument = oLable.CreateNewDocument();
oDocument.SaveAs(SaveFileDialog1.InitialDirectory.ToString() + SaveFileDialog1.FileName);
oWord.Quit();
我可以从上面的代码中得到一个空的 Word Lable 文档,如何将数据输入到文档中?任何人都可以给我一个这样做的例子吗?
谢谢