Skip to content

Instantly share code, notes, and snippets.

@evanricard
Last active October 13, 2019 17:12
Show Gist options
  • Save evanricard/f7f0cfa36602a4123285f3ee0a7320cb to your computer and use it in GitHub Desktop.
Save evanricard/f7f0cfa36602a4123285f3ee0a7320cb to your computer and use it in GitHub Desktop.
werd
Application app = new Application { Visible = true };
Document doc = app.Documents.Add*(;
Paragraph para = doc.Paragraphs.Add();
para.Range.Text = "Simple new code";
doc.SaveAs2<-->(FileName: "demo2.docx");
doc.Close();
app.Application.Quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment