Quantcast
Channel: shopSharepoint.com: Blog
Viewing all articles
Browse latest Browse all 80

Can you change the name of the document in a document library programatically??

$
0
0
Can you change the name of the document in a document library programatically?? - we CAN NOT do that simply as Name and Title of SPFile are read only fields.

SpFile.Title is a read only field as shown below.
 
SpFile.Name is also a read only field as shown below. 
 

This can be modified only using the SPListItem as the Document in a document library is a list item. So, a code like the one specified below should work like a charm





Viewing all articles
Browse latest Browse all 80

Trending Articles