有例子更好,邮箱:[email protected] 谢了
自己先顶了

解决方案 »

  1.   

    参考一下我的例子
    http://hi.baidu.com/webprince/blog/item/2810b199e0dd58086f068c75.html
    C/S同样适用,2005也适用。
      

  2.   

    用printdocument就可以,用PrintPageEventArgs.HasMorePages 属性 指定是否打印新的一页,可以参见下面的用法:// Specifies what happens when the user clicks the Button.
     private void printButton_Click(object sender, EventArgs e) 
     {
       try 
       {
         // Assumes the default printer.
         PrintDocument pd = new PrintDocument();
         pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);
         pd.Print();
       }  
       catch(Exception ex) 
       {
         MessageBox.Show("An error occurred while printing", ex.ToString());
       }
     }
     
     // Specifies what happens when the PrintPage event is raised.
     private void pd_PrintPage(object sender, PrintPageEventArgs ev) 
     {      
       // Draw a picture.
       ev.Graphics.DrawImage(Image.FromFile("C:\\My Folder\\MyFile.bmp"), ev.Graphics.VisibleClipBounds);
          
       // Indicate that this is the last page to print.
       ev.HasMorePages = false;
     }
      

  3.   

    如果固定要一行打印一页的话有简单的办法。
    http://babyt.cnblogs.com/archive/2005/03/11/116907.html
    他这里写了,把:recurdnumber mod 10 = 0  改成 recurdnumber mod 1 = 0
    就行了,mod后边的数意思是每页显示的行数
      

  4.   

    http://www.webmis.com.cn/MisGoldPrinter.htmhttp://blog.csdn.net/flygoldfish/archive/2004/08/17/77208.aspx
      

  5.   

    http://blog.csdn.net/pfworld/archive/2006/06/28/846975.aspx我BLOG上有!!
      

  6.   

    谢谢 大家的热心,都说这个问题很容易解决,但是大家给的好像都太复杂了,有没有一针见血的答案啊!我这个程序不用那么复杂的代码只要能实现就可以了,简单的例子,发E-mail:[email protected]  谢谢了
      

  7.   

    支持  flygoldfish(长江支流)
      

  8.   

    如果固定要一行打印一页的话有简单的办法。
    http://babyt.cnblogs.com/archive/2005/03/11/116907.html
    他这里写了,把:recurdnumber mod 10 = 0  改成 recurdnumber mod 1 = 0
    就行了,mod后边的数意思是每页显示的行数
    -------------------------
    看不懂?
      

  9.   

    shrekye(.net学习中……) 你的网页打不开,然后我在水晶报表里面有这样子写了,还是不出效果来
      

  10.   

    不好意思 shrekye(.net学习中……) 昨天是因为你的网页打不开所以没有去看它,谢谢了