public partial class WordExport_KJYJJRHLTHTS : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string dname = Request["dname"];
string DWBH = Request["DWBH"];
string XHBH = Request["XHBH"];
string templatePath = HttpContext.Current.Server.MapPath(@"~/office/doc/模板.doc");
System.Data.DataTable dt = DbSqlHelper.GetDataSet("SELECT * FROM KJYJJRHLTHTS WHERE XHBH='" + XHBH + "' and DWBH='" + DWBH + "' and MBBH='" + dname + "'").Tables[0];
List<Dictionary<string, object>> Datalist = DataTableToListDic(dt);
Document doc = new Document(templatePath);
DocumentBuilder builder = new DocumentBuilder(doc);
// 记录空行
Dictionary<string, int> emptyRow = new Dictionary<string, int>()
{
{"CJRY_NAME",0},{"JFZC_ZCNR"