Posted on: 8/26/2014 9:54:56 AM | Views : 367

I am making an Asp.Net c# .Net 2.0 Application on Windows 7 Professional using Visual Studio 2010

Am Trying to print an image from my page using below code but its not working neither giving any error
protected void ImgBtnPrint_Click(object sender, ImageClickEventArgs e) { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(pqr); pd.Print(); } void pqr(object o, PrintPageEventArgs e) { System.Drawing.Image i = System.Drawing.Image.FromFile(Server.MapPath(".\\NetworkImages\\" + txtMRN.Text.ToString() + "\\" + TreeViewID.SelectedNode.Parent.Value + "\\" + TreeViewID.SelectedNode.Value + "\\" + ListImages.SelectedValue)); Point p = new Point(100, 100); e.Graphics.DrawImage(i, p); }
Please advice ...

Go to the complete details ...