Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Word = Microsoft.Office.Interop.Word;
- object missing = System.Reflection.Missing.Value;
- Word.Application app = new Word.ApplicationClass();
- Word.Document doc = app.Documents.Add(ref missing, ref missing, ref missing, ref missing);
- doc.Activate();
- app.Selection.TypeText("This is some text in my new Word document.");
- app.Selection.TypeParagraph();
- Globals.ThisAddIn.Application.Documents.Add(ref objTemplate, ref missingType, ref missingType, ref missingType);
Add Comment
Please, Sign In to add comment