I'm trying to use a Web content Display to show how many times a file in document library has been viewed
Thanks in advance.
Solution
Here I am providing high level points, as detail would be little long :
Create a structure and template, in template for your web content
In template, get the Document Library service and access the file using file id (you can either give the file id hard coded or take that from user using structure texbox elemnt
Once you get the DLFileEntry object, you can get the download count easily