2
votes

How to check when a library item is viewed in a SharePoint library? We cant use Event Receivers as it contains the events Item Added,Item Updated and Deleted Events. In the case of viewing a document how can we track who viewed the page/How many times.I am using SharePoint 2010 development environment.

Thanks in Advance!

2

2 Answers

2
votes

You can set up item level auditing. Instructions can be found here. And if you want to retrieve audit data in code you can use SPAudit.GetEntries

2
votes

You can get the usage report through WSS_Logging database, check this link for more information or http://www.codeproject.com/Articles/70865/SharePoint-2010-Logging-Database

Hope this helps.