i've some dynamic pages in which i'm rendering the content of the page from the database, if there is any pdf file uploaded i'm showing a link to the user..
Now when user clicks on the link i just need to display the file content even if there no supporting readers like acrobat reader or any thing installed on the user system..How can i acheive this ???
Please help me out...

ShankeyRank #972 · 2.1K reputationPosted Sep 19, 2010, 9:51 PM EDT
Try following code, It will work for you. But dont forget to mark my answer as accepted if it helped you :)
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + strfilename + "\"");
Response.ContentType = "application/pdf";
Response.Flush();
Response.WriteFile(strfilename);
Response.End();
syed afroz46 reputationPosted Sep 20, 2010, 2:56 AM EDT
The code works fine if supporting software is installed on the client side but what i need is it should display the content even if supporting software is not installed on the client side..
awaiting for ur help....
Tanmay SarkarRank #1,407 · 1.2K reputationPosted Sep 20, 2010, 4:24 AM EDT
if in customer side Adobe reader is not installed then a window will automatic show "Open with" dialog. as usual customer would browse for correct application or he/she can close app.
that's it.
Thank you!
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 20, 2010, 4:41 AM EDT
syed afroz46 reputationPosted Sep 21, 2010, 4:41 AM EDT
Is there any way to incorporate the pdf viewer into our website that should support user even his machine is without any software...is there any plug-ins for that??
thank you...
Felipe RamosRank #1,409 · 1.2K reputationPosted Sep 21, 2010, 5:10 AM EDT