double year = DateTime.Now.Year; double month = DateTime.Now.Month; double day = DateTime.Now.Day; string a = "Report date: " + month.ToString() + "/" + day.ToString() + "/" + year.ToString(); //INSERTING TAB CHARACTERS oWord.ActiveWindow.Selection.TypeText("\t"); //DATE: oWord.ActiveWindow.Selection.TypeText(a); oWord.ActiveWindow.Selection.Fields.Add(oWord.Selection.Range, ref CurrentPage, ref oMissing, ref oMissing);
double year = DateTime.Now.Year; string a = year.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)