File Preview Consumer Webpart

An example of “how to create a consumer webpart”.

Description: This webpart can be connected to a list or a library webpart. The selected item in the provider webpart will be shown in an iframe.

Custom Settings: Define if the webpart consumes from a library or a list webpart.

 

Screenshot:

filepreviewwebpart

 

Custom Webpart Setting:

 

filepreviewsetting

 

Project Structure

filepreviewproject

 

Code FileViewerConsumerWebpart.cs

Leave a Reply

Your email address will not be published. Required fields are marked *