10 votes
Accepted

How can I count Document library in Sites(SPWeb) Level?

No need for looping , just get the library at a specific site based on the base type equal to DocumentLibrary then get count of collection as the following : using(SPSite site = new SPSite("https://...
Mohamed El-Qassas MVP's user avatar
6 votes

How can I count Document library in Sites(SPWeb) Level?

You can try this- as bellow using(SPSite oSite = new SPSite("https://server/site")) { using (SPWeb oWeb = oSite.OpenWeb()) { SPListCollection docLibraryColl = oWeb.GetListsOfType(...
Ram's user avatar
  • 2,444
5 votes

Where can I see the Forms folder of a document library?

You can also open SharePoint Designer -- > All files --> Document library -- > Forms --> Templatename.dotx If template is attached to any content type, inside Forms there will be a folder with ...
Unnie's user avatar
  • 8,819
4 votes

Where can I see the Forms folder of a document library?

Document templates are not visible in Forms folder but they are visible in Mapped network drive. So follow below links to map your library in network drive. http://mroffice365.com/2012/02/using-...
Atish Kumar Dipongkor's user avatar
3 votes

The file is locked for shared use by domainName\user

Using C# You must have wait for some time to check if the file is ready to use or not. Means you need to wait till lock status SPFile.SPLockType.None becomes true. Please check below code which ...
Hardik's user avatar
  • 7,743
2 votes

Create document from template with REST API in javascript

I think there is a work around and here are the high level steps. create a document using UI and save it to the library and name it as "new_template_doc" or something like that if you don't want ...
Vijay Vellabati's user avatar
2 votes

Create New Document Without Opening

I guess creating documents based on a template is not available in JSOM, however you can create such documents within a SP Lib, by directly using Office API method baked in SP core.js. Creating ...
Usman's user avatar
  • 91
2 votes

Add OneNote to Document Library Templates?

You can add a new document type into the document library easily through the following steps: Create a New Site content type by going to Site Actions -> Site Settings -> Site Content Types under ...
Hitesh's user avatar
  • 159
2 votes

SharePoint Workflow to create pdf from list columns and attach to Mail

OOTB SharePoint workflow doesn't have an option to convert your list item to PDF. To create PDF from your list item refer the below link, https://social.technet.microsoft.com/wiki/contents/articles/...
Karthik Jaganathan's user avatar
2 votes

How to create new Document Template for pages library

If I understood correctly, you want two things: a) your own, highly customized page/form that allows users create new page instances b) hook up your new page with the library for a), nothing stops ...
Tiago Duarte's user avatar
  • 5,477
2 votes

How to create new Document Template for pages library

I think you are looking for Page Layouts. This link have a lot of information regarding creation of page layouts in sharepoint https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-...
Johan Brännmar's user avatar
2 votes

Change default name when a user creates a excel template from document library

I haven't found a way to change the initial name, the user would have to change the name to something useful/unique when saving. However, I do have a rough fix of a workflow which when a new document ...
Thomas Frampton's user avatar
2 votes
Accepted

Is it possible to use a powerpoint document as a document template

For a library or a Content Type template? Yes, just use a .potx file.
Mike Smith - MCT's user avatar
2 votes

Multiple content types in SharePoint 2013 Library

I need to collect the following information to further troubleshoot the issue: Are you working in SharePoint online or SharePoint 2013? If you are working in SharePoint 2013, have you configured OWA ...
Lisa Chen MSFT's user avatar
2 votes

How can I count Document library in Sites(SPWeb) Level?

Get the document library count using LINQ: SPSite site = new SPSite("siteURL"); SPWeb web = site.OpenWeb(); var totalDocLibrary = (from SPList lst in web.Lists ...
Ronak Patel's user avatar
  • 3,261
2 votes
Accepted

How to delete a template from the "New" menu?

Check as following to delete the template:
Julie_MSFT's user avatar
  • 4,227
1 vote
Accepted

How to read Custom template from SharePoint Site

You can refer the below PowerShell script and which can be extended for your needs: # Paths to SDK. Please verify location on your computer. Add-Type -Path "c:\Program Files\Common Files\...
SP 2022's user avatar
  • 4,074
1 vote

SharePoint 2013 C# Event reciever choose specific template from document library

I've managed to do that as below: ... SPDocumentLibrary lib = (SPDocumentLibrary)web.Lists["listname"]; SPContentType contentType = lib.ContentTypes["content-type-name"]; ... SPFile spf = web.GetFile(...
Yossi Alfia's user avatar
1 vote
Accepted

Creating Folders To organize Templates in Sharepoint 2010

I don't think you can easily achieve exactly that, but you can assign different content type orders to different folders so that inside each folder the menu is by far less cluttered and appropriate ...
Alexey Krasheninnikov's user avatar
1 vote

Fill the word document template with a data from sql database

Yes you can achieve this but you have to configure it which required little effort.You can use data from an external source in the body of a Microsoft Word 2013 document by using a combination of ...
Waqas Sarwar MVP's user avatar
1 vote

How can I count Document library in Sites(SPWeb) Level?

using(SPSite site = new SPSite("https://sitecollectionurl")) { using (SPWeb web = site.OpenWeb()) { int i = 0; foreach (SPList list in web.Lists) { if (list.BaseType == ...
Gautam Sheth's user avatar
  • 30.9k
1 vote
Accepted

How to create a new document using a .docx template in a workflow

I think this link can get you close to what you are trying to achieve. http://www.documentmanagementworkflowinfo.com/sample-sharepoint-workflows/sharepoint-designer-workflow-create-new-document-based-...
Kenneth Kerr's user avatar
1 vote
Accepted

Is it possible to use a custom .xlsm file as the template for a document library?

Yes you can use macro enabled documents as Template. Associate a document template with a content type From the home page of the top-level site in the site collection, on the Site actions menu, ...
Amal Hashim's user avatar
  • 28.3k
1 vote

Can I create/update a list item by uploading a document to a document library in SP2010?

You can use Word Quick Parts and properties promotion: Create a document library. Add fields you want. Create a new Word document from the "New" button in the ribbon. Design in it the form as you ...
Evariste's user avatar
  • 9,751
1 vote

Can I create/update a list item by uploading a document to a document library in SP2010?

I'm not sure how it would work with a word document, but maybe you can look into using Microsoft Infopath forms? The forms use XML data which can be promoted into list columns. So users can fill out ...
Ramana Viswanadha's user avatar
1 vote

Empty word document created with template

I got the same problem and the fix was to build a Sharepoint 2010 Workflow. Follow the steps mentioned here: http://netwovenblogs.com/2015/04/24/how-to-dynamically-create-and-populate-word-document-...
q74cll's user avatar
  • 11
1 vote

Open office document templates as new document?

You can get the same functionality as the new document link in a more familiar "Windows Explorer" type of way by instead of clicking "New Document" offer a link set up like this: ms-word:nft|u|...
Aaron's user avatar
  • 250
1 vote

Creating Document with workflow: The file test.docx cannot be opened because there are problems with the contents

Please make sure that the document template (the content type document template) is doc or docx, and not dotx. In the workflow - Create Item - Path and Name should contain the name of the file and the ...
Noam Meir's user avatar
1 vote

One content type with multiple templates

In reference to where this could be used, there is an OOB Document ContentType and it has by default (Site Content Types --> ContentTypeName --> Document Property Settings) 'Use the default template ...
Thrilled2Bits's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible