Retriving a pdf document from a Document Library
SharePoint
2
Posts
2
Posters
2
Views
1
Watching
-
How to retrieve a pdf document from a Share Point document library. I am using c# Class Library project. Please help.
Are you going to retrieve a file (pdf) from document library? SPList list = SPContext.Current.Web.Lists["DOCUMENTLIBRARY"]; // Sample get item id no. 1 SPListItem listItem = list.GetItemByID(1); SPFile itemFile = listItem.File; The last statement will give you the file.
Riwut Libinuko Microsoft MVP | SharePoint Server | Singapore b: http://blog.libinuko.com c: http://ideasfreestsadm.codeplex.com