Example #1
0
 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);
     }
 }
Example #2
0
        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);
            }
        }