Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Jan 7, 2016, 10:05 PM EST
Please check below link, if it can help you:
http://www.c-sharpcorner.com/UploadFile/5089e0/how-to-open-pdf-files-in-web-brower-using-Asp-Net/
Jose SaizRank #5,346 · 302 reputationPosted Jan 8, 2016, 1:53 AM EST
How you tried embedding it?
Ajay GuptaRank #5,654 · 291 reputationPosted Jan 8, 2016, 2:03 AM EST
byte[] ar = new byte[(int)fs.Length];
fs.Read(ar, 0, (int)fs.Length);
fs.Close();
Response.AddHeader("content-disposition", "attachment;filename=" + AccNo+".pdf");
Response.ContentType = "application/octectstream";
Response.BinaryWrite(ar);
Response.End();
Lisa White141 reputationPosted Jan 10, 2016, 3:39 PM EST
Joaquin Martin2 reputationPosted Jan 28, 2016, 5:53 AM EST
http://demo.leadtools.com/JavaScript/DocumentViewer/