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...
Felipe RamosPosted Sep 21, 2010, 9:10 AM
syed afrozPosted Sep 21, 2010, 8:41 AM
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 RamosPosted Sep 20, 2010, 8:41 AM
Tanmay SarkarPosted Sep 20, 2010, 8:24 AM
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!
syed afrozPosted Sep 20, 2010, 6:56 AM
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....
ShankeyPosted Sep 20, 2010, 1:51 AM
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();