public JsonResult GetRemarks() { string path = ConfigurationManager.AppSettings["DocPath"];; string virtualPah = Server.MapPath(path); string docPath = Path.Combine(virtualPah, "test19.doc"); IBuildWord bword = new BuildWord(); bword.Load(docPath); var marks = bword.GetAllMarks(); return(Json(marks, JsonRequestBehavior.AllowGet)); }
// // GET: /Labels/ public ActionResult Index() { string path = ConfigurationManager.AppSettings["DocPath"];; string virtualPah = Server.MapPath(path); string docPath = Path.Combine(virtualPah, "test19.doc"); IBuildWord bword = new BuildWord(); bword.Load(docPath); var marks = bword.GetAllMarks(); //标签类型 if (Request.IsAjaxRequest()) { return(View("_LabelsPartial", marks)); } return(View(marks)); }