Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

File Properties

  Asked By: Harshit Guha         Date: Apr 29, 2010      Category: Sharepoint      Views: 202

I have a requirement where I have to consume data from a list/photo library and
insert it into the actual file's summary properties.

For ex:

Say If I upload a document/photo pertiaing to a application record, the program
should wirte into the Fields of SUmmary Properties of that File:

Titel, Subject, Author, Keywords, comments and so on.

Can we do this using C# and Sharepoint.

Tagged:    

 

5 Answers Found

 
Answer #1       Answered By: Shannon Fleming          Answered On: Apr 29, 2010       

Sounds like you could do that using SPD workflow.

 
Answer #2       Answered By: Aditi Msc          Answered On: Apr 29, 2010       

Poster is saying they want to write to the file  itself...unless you
have an amazing custom activity that you would like to share (O; SPD is not the
answer. This will require code.

 
Answer #3       Answered By: Abinav Basu          Answered On: Apr 29, 2010       

Try using Event Handlers......................

 
Answer #4       Answered By: Teresa Simpson          Answered On: Apr 29, 2010       

You can assign the file  properties using sharepoint  listItem. After getting
the listItem using SPListItem, try to do like below:
listItem["Author"] = "Jackson";listItem["Subject"] = "Chemistry";
after assigning all fields  finally update the listItem and the changes will
appear.
listItem.Update();

 
Answer #5       Answered By: Robby Barr          Answered On: Apr 29, 2010       

This is writing to the list. Poster wants writing to the file  stream
itself. If you right-click on a file on your system and choose properties  you
should see a tab for Summary info. Poster wants to add data  there.

Check out this link. I know it’s a subscription service but you should be able
to scroll all the way to the bottom and find more information. It seems there is
a .dll on MSDN somewhere...

 
Didn't find what you were looking for? Find more on File Properties Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].