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
![]()
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
