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://...
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(...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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/...
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 ...
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-...
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 ...
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.
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 ...
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
...
2
votes
Accepted
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\...
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(...
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 ...
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 ...
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 == ...
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-...
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, ...
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 ...
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 ...
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-...
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|...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
document-template × 138document-library × 48
content-type × 44
sharepoint-online × 22
word × 19
2010 × 14
2013 × 13
sharepoint-enterprise × 11
workflow × 11
list × 9
quick-parts × 6
sharepoint-foundation × 5
document × 5
javascript × 4
infopath × 4
excel × 4
form × 4
office-integration × 4
document-info-panel × 4
sharepoint-server × 3
2007 × 3
designer-workflow × 3
power-automate × 3
library × 3
sharepoint-library × 3