要求页面具有打印功能,纸张大小为A4
并且当前打印页面能够另存为word文档

解决方案 »

  1.   

    可以用水晶报表来做吧,或者用 CSS 样式把网页展示为象 WORD 表格那样
      

  2.   

    就web页面打印的功能吧,你们谁晓得,告诉我,能把整个页面显示的内容打印到A4的纸上就可以了
      

  3.   

    用工具做好了 像是FineReport,水晶啊 支持word excel pdf导入导出的 很简单的
      

  4.   

    页面打印: <object id="WebBrowser" name="WebBrowser" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
    <input class="btnPrint" style="width: 90px" type="button" value="打印预览" onclick="WebBrowser.ExecWB(7, 1);" />
      

  5.   

    页面导出Word           Response.AppendHeader("Content-Disposition","attachment;filename=result.doc"); 
               Response.ContentType = "application/ms-word";
               
                Response.Charset = "UTF-8";   
                Response.ContentEncoding = System.Text.Encoding.UTF8;              //关闭控件的视图状态 
                this.Page.EnableViewState =false;                 //初始化HtmlWriter 
                System.IO.StringWriter writer = new System.IO.StringWriter() ; 
                System.Web.UI.HtmlTextWriter htmlWriter = new System.Web.UI.HtmlTextWriter(writer); 
                // 要导出的控件,这里用this,当前页的所有内容.
                this.RenderControl(htmlWriter);              //输出 
                Response.Write(writer.ToString()); 
                Response.End();