public static WordDocument ProcessDocument(this WordDocument doc, Student student, AnnualGoal goal, string teacherName, string gradingPeriod, SchoolYearType year, string campus, bool last) { doc = doc.AddTitle("Special Education"); doc = doc.AddTitle("Data Collection Sheet"); doc = doc.AddStudentInfo(student.GetFullName(), student.LocalID, student.DateOfBirth, student.Gender, student.Grade, campus, year, teacherName, gradingPeriod); doc = doc.AddGoal(goal, true, last); return(doc); }
public static WordDocument CreateDocument(Student student, AnnualGoal goal, string teacherName, string gradingPeriod, SchoolYearType year, string campus) { WordDocument doc = WordFactory.Document(); doc = doc.AddTitle("Special Education"); doc = doc.AddTitle("Data Collection Sheet"); doc = doc.AddStudentInfo(student.GetFullName(), student.LocalID, student.DateOfBirth, student.Gender, student.Grade, campus, year, teacherName, gradingPeriod); doc = doc.AddGoal(goal); return(doc); }