SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to generate reports(like charts) from document library. either by using javascript or CAML queries or any custom coding. please suggest me.

share|improve this question

Since you have asked for suggestion. Then here are my suggestions for you...

Document Libraries are just like list at the end of the day with the exception that they store document and files. You can develop a custom web-part with .Net Chart Control 3.5 wherein you can query the target document library and generate charts like pie chart, bar chart, etc.

Direct Report generation is not available as a feature in SharePoint but yes you can always query document library with C# (SharePoint Object Model), CAML, jQuery/JavaScript and generate reports/charts.

I hope you may be aware of the out of the box chart web-part available in SP 2010 that can be configured to pull data from any library or list.

The most simple approach would be to create views and filter the library. You can also use Data View web-part and create a simple view that looks like a report by querying the document library with simple configuration and settings.

share|improve this answer

I know you can export document libraries in SharePoint but generating reports like charts isn't included yet as a feature however you can use third party tools for that I guess otherwise it going to be a big project to handle.

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

the report contains documents with metadata. and in the report i want only certain documents within specific period. let's say from 04th oct to 11th oct i want to display in the report. – Ramanjulu Oct 4 '12 at 11:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.