please help me
thanx.
Main Topics
Browse All TopicsHi,
I am working in a C#.net web application. I have a one button on the form. If i click button i want to open pdf(existing one) file in a new browser window without saving options for the user.
Means he can not save that pdf file in his location. This is important.
please help me.
thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
As gtworek said it can't be done through normal means, as if they have Adobe reader (or any reader really) then that will be used to open it, giving the usual options (save, new, etc).
We do that in my company, but the only people who are able to read the documents are given clearance. Best thing to do is lock down access to your web app.
It will always be possible to "Save a Copy" of the PDF document. Not really odd, since the browser will download the document and then display it.
Also, you can never prevent people rightclicking your link and then selecting "Save Target As", which will also place a copy of the PDF document on the disk. In the event that you send the document as a result of a button click, users will need to pull a bit more effort, but still will be able to get your document.
The PDF itself, however, has some security restrictions. Since you create a PDF for people to read and view, you cannot prevent them from copying it around ever. But the PDF team has provided security options: you can prevent the document from being printed, modified, copied or extracted. You can set these options when you create your PDF with Adobe Acrobat.
Finally, you can be a bit annoying to your users to make it slightly less trivial to save a copy of your document: you can set the following user interface options: Hide Menubar, Hide toolbar and Hide window controls. You can also set Open in Full Screen mode.
This will not give you real security to prevent saving (but as explained, that is quite impossible) but it makes it slightly harder. Depending on the settings of the Adobe PDF reader, these user interface options are or are not used. For instance, Full Screen mode gives a warning for me, and Hide Menu is -- luckily! -- not adhered to by my Adobe Reader.
Finally, if you are very serious about this copying thing, follow up on gtworek's advice and create your own format with your own reader. This will be, even for an experienced programmer, a huge task. It is possible that readers exist that can do this for you, but then you have to let go of the PDF format idea.
-- Abel --
There is no code involved. If you create your PDF with, for example Adobe Acrobat, or OpenOffice, you can set these options. Once done, all you need to do is provide a link to the PDF and that's it. You talk of a button, you can provide a Server.Redirect("yourfile.
Here's a screenshot of the options if you export in OpenOffice. Something similar is available in other PDF tools.
you cannot restrict user to download+save a PDF. if its downloaded in the Adobe Reader plugin on the client side. even if you restict the save option, he can still go into Temporary Internet Files and copy the file to his desktop.
if you are opening in a new browser window, hiding the menu options.. user can always click "CRTL + N" to open it in new browser with all the file menu options.
one thing you can do is, try to display the flash files using flash / or image or something.
Business Accounts
Answer for Membership
by: gtworekPosted on 2009-09-18 at 03:45:51ID: 25364500
If he can download it then he can do it to web browser or to own disk... so this cannot be really done. User always can save what he obtained.
Best method in this case will be providing your own reader on your webpage.