public void CreateReport() { var spec = new Test.Foo.searchByBar { name = "fail123" }; var result = tService.Populate<Test.Foo>("test.docx", spec); using (var fs = new FileStream("test.docx", FileMode.Create, FileAccess.Write)) { result.Result.CopyTo(fs); } }
public void CreateReport() { var spec = new Test.Foo.searchByBar { name = "fail123" }; var result = tService.Populate <Test.Foo>("test.docx", spec); using (var fs = new FileStream("test.docx", FileMode.Create, FileAccess.Write)) { result.Result.CopyTo(fs); } }