How can I print all of the documents in a document library using code?

Basant B. Pandey
  • How can I print all of the documents in a document library using code? Basant B. Pandey

    I want to know how to print all the files in a document library. I googled it and unable to find the solution. But during search I found a tool which provides almost the same type of functionality.

    Please guide me. How can I achieve this type of functionality?

  • I would try to make a print css file. Add a link to the page (masterpage) and open the current page in a new window, loading the print CSS.

    Off-course you could always add a dropdown button using code, but you still need to make the print css.

Related questions and answers
  • I have a document library using a document set content type. I can create a new document set through the UI and it works perfectly. I'm now trying to create a document set in this library... for the set looks like a folder instead of the document set icon clicking on the document set doesn't show the document set home page, it just behaves like a normal document library running CAML queries shows that both internal fields HTML File Type and ProgId should be SharePoint.DocumentSet but instead they are blank changing a field value on the document set folder doesn't propogate to its contents

  • I have 2 users, Martin and John I have 5 documents, all available to Martin and John. I also have 2 documents that are available to John only (Martin must not see them). To complicate matters... that have been replaced. A small amount of luck is that an administrator will specify which new document should ‘replace’ an existing document from the originals. Over time I would be required to add more documents and and users, providing the same functionality of ‘replacing’ certain documents for certain users. How would you do this? My first thought was creating roles and configuring the roles

  • I know that in SharePoint 2007, every image inside a [Picture Library] can have a thumbnail by adding the (_t) folder and the _extension.jpg to the file name. What about if my images are stored inside a [Document Library]? is there a way to display thumbnails of those images (of course without having to download them all :)) I am working on a thumbnail view application and my images are all stored inside a Document Library.

  • the user find other related documents generated in the workflow. I find that all this rapidly gets messy in trying to retrofit this different type of workflow into SharePoint. There are ways and means but I can't find anything ideal, or even just something I'm semi happy with. I'm hoping that people could answer with ways they can think of for using a workflow to drive further document creation...SharePoint workflow by nature is document centric in that you have to have a 'thing'; A object for the workflow to run on. This object can be a document, form or simple list item but this thing has

  • I want to retrieve only the documents that are present inside a specific folder of a document library using GetListItemsAsync method. Here is how i call it: sc.GetListItemsAsync("MyDocLib", null, null, null, null, XElement.Parse(@"<QueryOptions><Folder>MyFolder</Folder></QueryOptions>"), null); The call is returning all the documents inside "MyDocLib" and not only those that are in "MyFolder". How can I do that?

  • I have a document library with a document template (docx) in which several Quick Parts are defined. The Quick Parts link to column data in the document library. How do I create the document by filling in the column data on a NewForm, thus without opening the document template itself? Thus: Click new -> go to a page with the NewForm -> fill in the fields -> click OK -> Voila a new Document in the library with the provided metadata.

  • The definition of the 'View Only' permissions level is as follows: Members of this group can view pages, list items, and documents. If the document has a server-side file handler available, they can only view the document using the server-side file handler. What is considered to be a server-side file handler in the context of SharePoint? Is this an HTTPHandler? What technology is it based on, how do I write one?

  • for each customer, we could use basic permissions in a single document library, and she could override the permissions per doc. The issue here is when a customer uploads a file, the permissions won't be overridden automatically (unless I can do it through SPD?). And my final option is to create a doc library for each customer. The issue here is when a customer logs in, how can I display a web part... website. Since we're starting off with the basic package I cannot install my own custom WSPs to handle this, instead I have to rely on SPD and out of the box SharePoint functionality. My issue

  • Is it possible from the MOSS 2007 OOTB web parts with no custom code of any sort to create a view of all document libraries on a given site expanded to show all folders and documents within it? Table of Contents will give you the libraries and CQWP will give you the documents but I'm looking for a combination of these I guess. I pretty sure it's not possible OOTB but thought I would ask this here just in case. Considering a DVWP to deliver the functionality but could save time if we can do this OOTB. NOTE TO SELF - Stop end users from using document libraries as folders!

Data information