1

I've managed to do that as below: ... SPDocumentLibrary lib = (SPDocumentLibrary)web.Lists["listname"]; SPContentType contentType = lib.ContentTypes["content-type-name"]; ... SPFile spf = web.GetFile(contentType.DocumentTemplateUrl); ...


Only top voted, non community-wiki answers of a minimum length are eligible