建议使用水晶报表,在报表建立显示字段,然后通过Session把 richTextBox1值传过去就好了

解决方案 »

  1.   

    首先在InitializeComponents中添加ThePrintDocument的PrintPage事件
    thePrintDocument.PrintPage += new PrintPageEventHandle( thePrintDocument_PrintPage );打印方法:
    private void thePrintDocument_PrintPage( object sender, System.Drawing.Printing.PrintPageEventArgs e )
    {
        //获得PrintDocument的Graphics对象
        Graphics g = e.Graphics;    //开始“画”string
        g.DrawString(richTextBox1.Text,
                    this.Font, new SolidBrush(Color.Blue),
                    new PointF(100, 100));
    }