I am currently finding my feet with the Sharepoint 2010 client object model. I have a C#.net winforms application from which i need to access sharepoint.
I would like to programatically create a new document in a document library based on one of the document templates configured for that library. (Basically replicate the New Document drop down button functionality).
Desired functionality:
Show a form with the available content types. (i can do this, i load the list.ContentTypes for my library) Then i allow the user to select one of these content types.
Use the content type to create a document based on the Document Template that is configured for that content type. So there now exists a new document in the library with the content as sourced from the template doc.
Open the new document.
When i get to point 2 I'm stuck - I expect there to be some sort of Create New Doc From Content Type/Template functionality, but i can't find it.
Can anyone set me on the correct path to working this out?
Cheers!
Jamie