3 Answers
3

You could develop a web-part in Visual Studio which gets the list or document library you need and displays the content in a repeater or grid view, if you need an example of how that code might look, see this link.

When I upload a file to Sharepoint, I save a record in my App's database with the file name and location, usually this will be in the format http://198.mySharepointServer/LibraryName/Filename.txt. This is then much easier and quicker than accessing Sharepoint programatically, running code and then retrieving the files url because you can just access a local database.

Similarly if you have the file's filename and you are only using 1 Sharepoint library the url shouldn't change so you can just use that url throughout and simply attach /filename.txt to the end of that url.

Here's a short extract of some code I used to retrieve the url programatically by searching with a document ID. Please note this was coded by a colleague so I just followed the logic, you can do the same and see what pieces you could use.