Returns a new IDocument instance.
null. null. A new IDocument instance.
After setting some of the fields on the newly created object, the method InsertNewDocument must be called to persist the newly created document.
//Create the document
IDocument newDocument = documentManager.CreateNewDocument("my new document", "this is a test document");
//Set optional properties
newDocument.Author = "joe bloggs";
//Set content-type
newDocument.ContentType = "text/vnd.ms-word";
//Open a Stream for the document contents
Stream fileInputStream = new FileStream("c:\\report.doc");
//Insert the document, inheriting the containing folder's security
documentManager.InsertNewDocument(containingFolder, newDocument, "initial check-in", fileInputStream, "en", true);
IDocumentManager Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace