Download and Print a .pdf file with in a button_click in window form application

Posted by Kamalakanta.Nayak09 under C# on 6/28/2012 | Points: 10 | Views : 831 | Status : [Member] | Replies : 2
How to down load a .pdf file from http://.....url and Print that file with in abutton click?
I want the print code in C# .net specially.

Thanks,
K.K



Responses

Posted by: Premalatha on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
Go to This Like That May Help you

http://forums.asp.net/t/1068814.aspx


Premalatha
Software Engineer

Kamalakanta.Nayak09, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jeffie on: 6/29/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
  string strOutput = "attachment=" + strFilename + ";filename=Export.pdf";

Response.AppendHeader("content-disposition", strOutput);
Response.Charset = "";
Response.ContentType = "application/pdf";
Response.BinaryWrite(msPdf.ToArray());[
function getPrint() {
window.print();
}
/CODE]
Thanks
http://www.alacraft.com.au/

Kamalakanta.Nayak09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response