Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using this code to search and view pdf :

WebClient client = new WebClient();
string Path = @"Z:\abc\abc\";
Byte[] buffer = client.DownloadData(Path + lblresult.Text);
Response.ContentType = "application/pdf";
Response.AddHeader("content-length", buffer.Length.ToString());
Response.BinaryWrite(buffer);

now problem is, it is displaying pdf in new window in browser i want to display PDF on same page in lable , Panel etc

Please Help.....
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900