Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 03, 2011 06:27 PM by siteslayer
May 01, 2007 05:23 AM|LINK
This sounds like a problem that I had,
The suggestion that worked was to use an Iframe, and set it's src attribute to the document link. (read for more about
iframes). This was dead easy as long as I had a constant for the name of the document, but there was a bit of bother setting the src attribute
from the program until Haissam showed me how to do this.
I was using this for a .htm document, but it would work equally well for .doc, .pdf, or anything that the client computer can handle.
May 04, 2007 10:27 AM|LINK
The most simple solution for this is create a simple iframe ans set the source pdf , it will load inside the webform [:)]
IIS/Asp.Net Engineer Microsoft.
Sep 15, 2008 10:10 AM|LINK
Hi I am Arun Prasad.B from India. I want to display pdf in asp.net with disabling the printing and save options in pdf viewer. As well as I want to restrict the context menu in Pdf Viewer. If any one knows please guide me.
Sep 15, 2008 10:29 AM|LINK
I want to display pdf in asp.net with disabling the printing and save options in pdf viewer.Plz help
Oct 17, 2008 07:04 AM|LINK
Can you try to use this open source control.
Dec 06, 2008 10:39 AM|LINK
do u have any solution in asp.net with pdf and print and save as property disable
i need very urgent
pls help me
Jul 02, 2009 09:08 AM|LINK
I want to use your solution(
) to display different documents on the iframe based on what the user wants to see. for example affter a user has selected some option from a drop downlist the iframe shoul display the pdf document related to their option. please help.
Jul 02, 2009 09:23 AM|LINK
to open pdf file
string filePath = ur file path on the server
Response.contentType = "application/pdf";
asp.net with pdf and print and save as property disable this is your post
Not posible since that's the browser property. what you can only do is add a watermark to the PDF so that it becomes unusable
Apr 07, 2010 08:43 AM|LINK
This way it works
Dim filePath As
Response.ContentType = "application/pdf"
place the above code in pageload in webform2.aspx
Working as expected, I mean the back button is working.
Jul 15, 2010 03:00 PM|LINK
Thanks for this post. I have an application which I developed in 2007 in ASP.NET 2.0 framework.
There is a need for the application to display PDF file for user preview, which I did using iframe as you adviced.
But when file to be displayed is downloaded by the application, users will have to click the refresh button on the web browser before the current PDF file is displayed, sometimes it doesn't work.
Please, what can I do to ensure that once the page is loaded, the correct file displays.
The correct file is actually downloaded, because when I go in to the folder where the downloaded file is, it is the one requested that I see there.