private void button2_Click(object sender, EventArgs e) { // Create a document. FileInfo fi = new FileInfo(@"D:\Test2.docx"); DocXLab.CreateDocX_SomeStuff(fi); // show the result. System.Diagnostics.Process.Start(fi.FullName); }
private void button2_Click(object sender, EventArgs e) { // Create a document. var workFolder = new DirectoryInfo(@"C:\Temp"); FileInfo fi = new FileInfo(Path.Combine(workFolder.FullName, "Test2.docx")); DocXLab.CreateDocX_SomeStuff(fi); // show the result. System.Diagnostics.Process.Start(fi.FullName); }