通过 数据库中存放的是图片的路径 得到 图片全名
 再传入Web 浏览器 打开  -----》打印。 参考!

解决方案 »

  1.   

    ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemDrawingPrintingPrintDocumentClassPrintTopic.htm
    先看这个,
    然后把
    ev.Graphics.DrawString
    改成
    ev.Graphics.DrawImage()
    Image可以用FromFile(图片的路径)取到
    FromFile函数  -_-!!! 寒
    楼上的我的问题研究出来了么?
      

  2.   

    <body onload="windows.print()">
    <img src="<%=RS("IMGPATH")%>">
    </body>
      

  3.   

    string strPath = 字段值
    Image ima=Bitmap.FromFile(strPath );
    pictureBox.Image = ima;
      

  4.   

    //打印事件。
    private void button5_Click(object sender, System.EventArgs e)
    {
    try 
    {
    printFont = new Font("Arial", 10);
    PrintDocument pd = new PrintDocument(); //Assumes the default printer
    pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage);//调用打印事件.
    pd.Print();
    }
    catch(Exception ex)
    {
    MessageBox.Show(ex.Message);
    }
    finally 
    {

    } }
    ///////////////////////
    //执行打印
    private void pd_PrintPage(object sender,PrintPageEventArgs ev)
    { Rectangle rect = new Rectangle(new Point((int)leftMargin + 450,(int)30),
    new Size((int)pictureBox1.Image.Size.Width,(int)pictureBox1.Image.Size.Height));
    ev.Graphics.DrawImage(pictureBox1.Image,rect); ev.HasMorePages = false ;
    }
    ///////////////////////////
    这里主要是以画图的方式进行打印。
      

  5.   

    首先把图片读到pictureBox1中。
    这个不难吧。