word 导出
在 word 导出中 ,如何设置导出的字体的大小啊
代码如下
public void btnPrint_Click()
{
OutPut("online;filename=out.doc", "application/ms-word");
}
private void OutPut(string fileType, string strType)
{
Response.Clear();
Response.Buffer = true;
Response.Charset = "GB2312";
Response.AppendHeader("Content-Disposition", fileType);
Response.ContentType = strType;
this.EnableViewState = false;
System.IO.StringWriter swOut = new System.IO.StringWriter();
HtmlTextWriter hTw = new HtmlTextWriter(swOut);
this.RenderControl(hTw);
Response.Write(swOut.ToString());
Response.End();
}