最近才用C#,不知道要怎么设置打印的模式..
那位给我一个打印的例子.主要是可以自己设置格式,把数据填在里面..

解决方案 »

  1.   

    private void button1_Click(object sender, EventArgs e)
            {
                            pageSetupDialog1.PageSettings = new System.Drawing.Printing.PageSettings();
                pageSetupDialog1.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
                //Do not show the network in the printer dialog.
                pageSetupDialog1.ShowNetwork = false;
                //Show the dialog storing the result.
                DialogResult result = pageSetupDialog1.ShowDialog();            if (result == DialogResult.OK)
                {
                    object[] results = new object[]{ 
                    pageSetupDialog1.PageSettings.Margins, 
                    pageSetupDialog1.PageSettings.PaperSize, 
                    pageSetupDialog1.PageSettings.Landscape, 
                    pageSetupDialog1.PrinterSettings.PrinterName, 
                    pageSetupDialog1.PrinterSettings.PrintRange};
                    listBox1.Items.AddRange(results);            }        }
      

  2.   

    http://blog.csdn.net/flygoldfish/archive/2004/08/17/77208.aspx 
      

  3.   

    http://blog.csdn.net/flygoldfish/archive/2004/08/17/77208.aspx
      

  4.   

    http://www.d0755.com/html/24/4/4785/2.htm
      

  5.   

    http://www.webmis.com.cn/
    直接用这个不就可以了!