Programming, VB.NET, Software, Visual Studio 2010, .Net, Visual Studio 2013, SharePoint, Tool

Get the Total Number of Documents in a SharePoint Site Collection Library and its Sub Folders using .NET

List the Total Number of Documents in a Library and its Sub Folders
List the Total Number of Documents in a Library and its Sub Folders

One thing that you often need and that is quite annoying to get in a default SharePoint installation is the total number of files in a document library and all of its sub-folders. The most common advice is to open the explorer view and then navigate through the folders and add up the file totals, but this becomes tedious really quickly if you have a library with numerous files and folders. Another option is to write a PowerShell script, but then you need to be on the SharePoint server itself and with an account that doesn’t have access to the document libraries. Also, in the case of PowerShell, you’ll quickly become annoyed with the many bad script examples out there that don’t work and end up taking your time. Continue reading “Get the Total Number of Documents in a SharePoint Site Collection Library and its Sub Folders using .NET”

Advertisements
Programming, VB.NET, C#, Software, Technology, VSTO, msoControlComboBox, SharePoint

VSTO Add a Menu Item to Outlook and Save an Email into SharePoint

SharePoint Documents List
SharePoint Documents List

Some really cool functionality that you can put together is to automate saving emails from your Outlook email application to be stored in a SharePoint document list. This lets your users keep using the tools they are comfortable working with (such as Outlook), but helps make sure that important emails are backed up to a reliable storage and reporting medium like SharePoint with as little effort on the user’s part as possible.   Continue reading “VSTO Add a Menu Item to Outlook and Save an Email into SharePoint”

.Net, ASP.NET, Programming, SharePoint, Software, Technology, VB.NET, Web Development, WebForms

Read a SharePoint Document Library’s Row Details in .NET

SharePoint Documents List
SharePoint Documents List

In this example you’ll see the basics of programmatically connecting .NET code (a simple WebForm) from your local machine to read a Documents list hosted on a SharePoint server. Specifically, in this example I am using Visual Studio 2017 and am connecting to a SharePoint 2016 site on the local network. Continue reading “Read a SharePoint Document Library’s Row Details in .NET”