jitendra rawat

jitendra rawat

  • NA
  • 15
  • 3.7k

Working with word Document for mail merge

Feb 23 2016 5:52 AM

 
Hello ,
 i am new in using word with development asp.net using c#,
 i am using visual studio 2008 .
  i have  written this code..
 {
   var application = new Microsoft.Office.Interop.Word.Application();
var document = new Microsoft.Office.Interop.Word.Document();

document = application.Documents.Add(Template: @"E:\XXXXX\XXXXX.docx");
 
ans so on.......
}
    The Template is not predefine  here and not working. but the exact code is working in 2010 visual studio.
 
Thanx in advance.

Answers (2)