我通过SQL查询到我想要的数据,并希望通过点击按钮打印出指定的数据。
但我查了好久都没有找到理想的例子,求助各位。

解决方案 »

  1.   

    用 水晶报表或RDLC 打印详细内容 你查 C# 水晶报表   或 C# RDLC 网上的资料很多.
      

  2.   


    private System.Drawing.Printing.PrintDocument
    private void printdoc_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e){
    //这个事件里直接写就行了
    }
      

  3.   

    绑定数据到datagridview通过printdocument打印
    或使用水晶报表、RDLC打印