我现在在做一个银行打印单据
但是我打印不了 textbox控件里面的值 . 
不知道那个代码怎么写 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace printer
{
    public partial class nonghang_chu_kuan_chu_tiao : Form
    {
        public nonghang_chu_kuan_chu_tiao()
        {
            InitializeComponent();
        }        private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            textBox1.Text = "";
            textBox2.Text = "";
            string name = textBox1.Text;
            string sex = textBox2.Text; 
                       string[] sh = new string[2]{name,sex};
            
                   }        private void nonghang_chu_kuan_chu_tiao_Load(object sender, EventArgs e)
        {        }        private void button1_Click(object sender, EventArgs e)
        {
            PrintDialog pd = new PrintDialog();
            pd.Document = printDocument1;
            if (printDialog1.ShowDialog() != DialogResult.Cancel) {
                try
                {
                    printDocument1.Print();
                }
                catch(Exception ex) {
                    MessageBox.Show(ex.Message);
                }
            }
        }
    }
}
下面有个窗体的图 想用一个数组调进printDocument 里面去.到最后实在写不下去了
各位帮帮我吧. 谢谢了