.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Document library hiding pdf files' tool bar

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
Hi all, I have a requirement that the Sharepoint pdf documents should have the toolbar hidden in order to prohibit users from downloading and printing the file. The only way I can do this is to create a content editor web part, using HTML to open the pdf file and add '#toolbar=0' after the pdf file name. I am wondering if I can also add '#toolbar=0' to the Sharepoint document library's pdf files? Thanks!

View Complete Post

More Related Resource Links

Reg File Upload control to upload files from document library


In Field Upload control if we click browse button it allow us to search file in our hard disk but now as per my requirement as soon as user clicks ‘Browse’ button it should point to the document libraries and their files in site.Let me know how could i achieve this?

Thanks & Regards,


overwrite the files in document library from Explorer View ?

Hi Everyone, Suppose I have a document library which can be opened using the explorer view, what happened if someone uploads to this library by drag n drop into the library with same filename? What would be the final story of the file which is overwritten through drag n drop from Explorer view ? Thanks./* Infrastructure Support Engineer */

Indexing Document library which contains .RTF files

Hi All, I've just craeted a document library objects in my SharePoint site and then i imported several hundreds .RTF files into it, how and when can i perform search and compare of this files against each other ? Does MOSS 2007 SP2 Enterprise supports indexing .rtf files ? Thanks, AWT/* Infrastructure Support Engineer */

Moving files from one document library to another problem.

Hi, I have a strange problem with trying to move a number of files progammatically from one document library to another. I have a workflow running in sharepoint, which throughout the progress of the workflow, updates a word document stored in a document library, titled "CR".  Within the CR library there may also be a folder title "CR X" where x is the number of the document.  This folder contains any files which have been attached to the CR document.  I.E, excel files, pictures etc. When the workflow completes, the document should be moved to another document library called "Archived" which has a folder named after the year, i.e 2010, which inside that, contains a folder called the name of the document.  All the attached documents should also be moved to this folder. So for example, a document structure could be parentweb\parentsite\CR\CR 2.doc parentweb\parentsite\CR\CR 2\image.jpg parentweb\parentsite\CR\CR 2\image2.jpg Should, when the workflow completes end up looking like: parentweb\parentsite\Archived\2010\CR 2\CR 2.doc parentweb\parentsite\Archived\2010\CR 2\image.jpg parentweb\parentsite\Archived\2010\CR 2\image2.jpg. I have got the first part working fine, where the document is moved to the archive directory.  But I cannot move all the attachment files.  The loop I have to get the files and move them will wo

Querystring to determine what Document Library Folder's files to list?

First of all, any webpart that alllows you to list documents in a particular folder of a Document library? Second, possible to pass what folder to list via a query string to  that webpart ? Thanks.

Excel fields linked to files in the document library do not update


We are having an issue with an Excel spreadsheet that is linked to several Excel documents in a document library.  Mutliple staff members update several "sub" spreadsheets with information that is rolled up to the "master" spreadsheet.  Excel appears to behave correctly in that if I open both the sub and master spreadsheets in my Excel window at the same time, the data in master gets updated.  If I just open the master, I have stale data.  I'm not sure SharePoint is to blame here, so I'll post this in the Excel forums as well, but any information or experience anyone has had with this would be fantastic.

Thanks in advance for any help/advice!

Sharepoint 2007 delay in files are not showing up in document library


When saving a file from ie. an email attachment into a sharepoint document library the files show up in explorer view of the document library but there is about a 20 minutes delay before they show up in the default view of the document library.  This is quite frustrating as because you can not see it there the users try to save as again. 

This seems to work correctly in our test sharepoint environment.  Does anyone have any ideas as where to start looking.


Managing Document Library files using Offce 2007 VBA


We have a farily large SharePoint site, (>20,000 Office documents), and we are running low on disk space.  I would like to write a VBA program that walks through the tree (including subsites) and deletes all the document library history files that are over 1 year old.  I can't seem to find a way to access the history files unless I open each document; opening each document would cause my program to take months to complete.  Does anyone know a way to get access to the history files using VBA without having to open the Office file whose history I want access to?  The only way I've found to access this history files is to use the DocumentLibraryVersions object, but it requires that I open the file (that I know of).  I have no problem walking the file tree and I have access to SharePoint Designer 2007, Excel 2007, and Word 2007 typelibs, object models, etc..  Due to policy restrictions in my company, I cannot install development tools on my machine, so I'm stuck with VBA.  Also, I won't be allowed to create a web service; although I can access one that already exists on our server in case any come with SharePoint.


P.S., I have lots of good VBA code that I've written over the last 15 years to do all kinds of tasks with Office and SharePoint that I'm happy to share if anyone can benefit from it.&

How to Programmatically Upload the files based on the current location in the document library?


how can programmatically to upload a file to document library based on the current location for example when i was inside the subfolders and click on the custom button in ribbon it should upload file to current location entered to document library not hardcoding the subfolders name 

Thanks in advance

how to extract the files from the document library using object model



I need to extract the files from the document library using object model in sharepoint 2007.

Can anyone help me.




Deploying files to a document library with your wsp (hopefully an easy one!)


Hey all,

I build a project to WSP and deploy to my solution, that all works beautifully. I now want to deploy some 'emailtemplates' for use throughout the site collection - the best way to do this seems to be as a document library. What do i need to do? Can i do it as a module? How do i specify where things end up? I'm really struggling to find links to help with this so i'm thinking it must be 'obvious' - at least to someone!

Many thanks,


Edit 1: Email templates are .xslt files

Deploying files to a document library with your wsp (hopefully an easy one!)


Hey all,

I build a project to WSP and deploy to my solution, that all works beautifully. I now want to deploy some 'emailtemplates' for use throughout the site collection - the best way to do this seems to be as a document library. What do i need to do? Can i do it as a module? How do i specify where things end up? I'm really struggling to find links to help with this so i'm thinking it must be 'obvious' - at least to someone!

Many thanks,


Edit 1: Email templates are .xslt files

Move SharePoint Document Library Files to Local Drive

How can I move files uploaded into a MOSS 2007 Document library to a local drive? I need to automate this as a job, not a one-time process. Can I use SSIS for it? File Systems Task works fine so long as I create a map drive to the portal. I have tried both the http address and the UNC path to the portal.

pdf files in document library cause second login on secure sharepoint site


in somewhat of a twist to the previous kb 943280 I have clients accessing my wss 3.0 site over ssl.

they attempt to go into their document libraries and are able to receive the ms type documents and their associated icons show up.

however in attempt to get to the pdf documents they're asked to login again, and if they bypass the login they can access the pdf file fine, it just doesn't draw the pdf icon.

I do have the icon correctly installed, for me as site owner the icon displays fine and I do not get asked to login again.

What I have seen with the other users is that they're using Vista home and/or business with the 256bit encryption while I am using the 128 bit encryption.

This site was also previously on a hosted site, not requiring ssl, but no one had the second login issue which makes me think I am missing a server option that should be on my machine.

Thanks in Advance!

failed to upload multiple files to a document library!


I have a document library. I have upload a lots of files by upload multiple documents function several days ago. When I tried to upload some files today. It always failed if I drag a folder into the upload multiple documents dialog.

Drag a folder with any number of files in it to the upload multiple documents dialog. Failed.
Drag files into the upload multiple documents dialog. Sucess.
Create a folder manually, then upload files into the new folder. success.

Anybody have some clues for this problem. Why today I always failed to upload files when I drag a folder?

Thanks very much.

Conversion of xlsx files uploaded to document library


I have a MS Sharepoint Server 2007 installed, and we are using a document library to store files of various types.  Some of our users use OpenOffice to read and save these documents.

When I upload a document that is an xlsx formatted document, microsoft seems to convert the file into a different format than the file that was uploaded - preventing Open Office from opening the file.  The file is still an xlsx file and Microsoft Excel is able to understand this format.  Is there a way to turn this behaviour off?

I've tried turning off the Document Conversions Launcher Service (as well as the Load Balancer)

I've also tried changing the settings for the document library -> 'Open in client application' and 'open as web page', neither of these seem to solve my problem. 


How can I configure Sharepoint so that it doesn't convert my xlsx files?  Any clues would be greatly appreciated.

Collaboration on Word 2010 files that are saved in a Sharepoint 2010 Shared Document Library.


We have installed Sharepoint 2010 and Office Web Apps on a 64-bit Windows 2008 server. Excel 2010 files can be collaborated among different users (i.e. user status bar is showing the number of users accessing the Excel file) when the file is edited using Edit in Browser option. However, we cannot get Word/PowerPoint 2010 files to collaborate in the same manner (i.e. no user status bar).

Does the collaboration feature work for Word/Powerpoint 2010 using Office Web Apps or it is available for Excel/OneNote 2010 only?

If collaboration is also available for Word/PowerPoint 2010 using Office Web Apps, any ideas why Excel 2010 works for us and not Word/PowerPoint?

Thank you in advance for your help and clarification.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend