<input type="button" value="打印" onClick="window.print();">

解决方案 »

  1.   

    在WEB上的话就是楼上所说的,在Windows下的话,你需要引用IE组件,用IE的打印功能去实现
      

  2.   

    我的意思是不用web方式打印,而直接用c#在后台打印。
      

  3.   

    用PrintDocument 类来做后台打印具体用法见MSDN
      

  4.   

    参考如下:
    http://www.codeproject.com/useritems/reportprinting.asp?target=print
      

  5.   

    你是想打印本页面吗?如果是想打印本也面,以下代码可以帮助你
    <asp:button id="btnPrint" runat="server" Text="打印"></asp:button>后台:
    private void btnPrint_Click(object sender, System.EventArgs e)
    {
        string strPrint="<script language=javascript>window.print();</script>";
        Response.Write (strPrint);
    }通常在后台也是用javascript来实现这些功能的
    祝你好运!
      

  6.   

    用WebClient,将网面内容读过来。然后print.