Quick Tip: VSTO Retrieve The SharePoint File Location
Visual Studio Tools for Office (VSTO) can be used to develop add-ins (and more) for an Office application. In combination with the SharePoint Client Object Model, it could be used to retrieve additional information from a SharePoint site were the file is located. You always need to specify a site URL when using the SharePoint Client Object Model.
Read more