ASP。报净MVC中怎么导出词表

  

<强> 1。首先就是引用该插件

 ASP。报净MVC中怎么导出词表

<强> 2。词填充模版

 ASP。报净MVC中怎么导出词表

<强> 3。后台操作

private  List, QuaterAirPM10AvgVolReport (string  stn, DateTime 开始,DateTime 最终,Aspose.Words.DocumentBuilder 构建器,,out  DataTable  dt,, out  List, widthList, string  isMax)   ,,,{   ,,,,,dt =, QuaterPM10AvgVol  (stn,开始,结束,isMax);   ,,,,,widthList =, new  List ();   ,,,,,双[],colWidth =, new 双[],{,50岁,118年,117年,50岁,118年,117年,};   ,,,,,string [], colName =, new  string[],{,“排序”,,“城市“,,start.Year  +,“年”,+,start.Month  +,“~“+ end.Month +“月浓度(μg/m3)“,,“排序”,,“城市“,,”较“,+,start.AddYears (1) .Year  +,“年同期增幅“,};   ,,,,,builder.MoveToBookmark (“table3");   ,,,,,Aspose.Words.Tables.Table  table =, builder.StartTable();//开始画table    ,,,,,builder.InsertCell ();   ,,,,,builder.CellFormat.Borders.LineStyle =, LineStyle.Single;   ,,,,,builder.CellFormat.Borders.Color =, System.Drawing.Color.Black;   ,,,,,builder.CellFormat.VerticalMerge =, CellMerge.First;   ,,,,,builder.CellFormat.Width =, 285;   ,,,,,builder.ParagraphFormat.Alignment =, ParagraphAlignment.Center;   ,,,,,//,builder.CellFormat.VerticalAlignment =, Aspose.Words.Tables.CellVerticalAlignment.Center;   ,,,,,builder.Write(“按平均浓度排序“);   ,,,,,builder.InsertCell ();   ,,,,,builder.CellFormat.Borders.LineStyle =, LineStyle.Single;   ,,,,,builder.CellFormat.Borders.Color =, System.Drawing.Color.Black;   ,,,,,builder.ParagraphFormat.Alignment =, ParagraphAlignment.Center;   ,,,,,//,builder.CellFormat.VerticalAlignment =, Aspose.Words.Tables.CellVerticalAlignment.Center;   ,,,,,builder.CellFormat.VerticalMerge =, CellMerge.None;   ,,,,,builder.CellFormat.Width =, 285;   ,,,,,builder.Write(“按“,+,start.AddYears (1) .Year  +,“年同期增幅排序“);   ,,,,,builder.EndRow ();   ,,,,,AsposeCreateCell (builder, colWidth [0],, colName [0]);   ,,,,,AsposeCreateCell (builder, colWidth [1],, colName [1]);   ,,,,,AsposeCreateCell (builder, colWidth [2],, colName [2]);   ,,,,,AsposeCreateCell (builder, colWidth [3],, colName [3]);   ,,,,,AsposeCreateCell (builder, colWidth [4],, colName [4]);   ,,,,,AsposeCreateCell (builder, colWidth [5],, colName [5]);   ,,,,,builder.EndRow ();   ,,,,,//开始添加值   ,,,,,for  (var 小姐:=,0;,小姐:& lt;, dt.Rows.Count;,我+ +)   ,,,,,{   ,,,,,,,if  (dt.Rows[我][“CityName"],==,“12个考核地市“,| |,dt.Rows[我][“CityName"],==,“全省“)   ,,,,,,,{   ,,,,,,,,,builder.InsertCell ();   时间=builder.CellFormat.Borders.LineStyle  LineStyle.Single;   ,,,,,,,,,builder.CellFormat.Borders.Color =, System.Drawing.Color.Black;   ,,,,,,,,,builder.CellFormat.VerticalMerge =, CellMerge.First;   ,,,,,,,,,builder.CellFormat.Width =, 168;   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

ASP。报净MVC中怎么导出词表