Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
126 views

How to move a file programmatically and preserve full version history (including users!)?

I have a document approval system that works something like this: User uploads a document to one library, fills out metadata. Approval process begins, workflows are fired to send out notification ...
Dylan Cristy's user avatar
  • 12.8k
1 vote
1 answer
1k views

How to get SPfile versions?

I'm making a .txt to store each version of a file after I perform a certain action. The code I'm running is simple: write("version number: 0.1"); write("modified : " + file.Item["Created"].ToString()...
smith's user avatar
  • 55
1 vote
1 answer
2k views

Programmaticly updating SPFileVersion.Properties Hashtable

Anyone who has experience with programmatically updating the SPFileVersion.Properties Hashtable? I have a special situation where I would like to modify this Hashtable. Most of you will say: "Why on ...
Frederik P.'s user avatar
0 votes
1 answer
2k views

SPWeb.GetFile for an old version of file

I have a document library with enabled versioning, I added an xml file, then added it again, but I have edited one value in it. Now I would like to get the content of both files in C# to compare them. ...
matt137's user avatar
  • 141