Home > Enterprise >  SharePoint online use CreateDocument CSOM interface generated document size is zero?
SharePoint online use CreateDocument CSOM interface generated document size is zero?

Time:09-20

Using the CSOM interface, calls to generate a new office documents, the results generated file size is zero, open the display error, relevant interface is as follows:


Microsoft SharePoint. Client (. In Microsoft SharePoint. Client. DLL)
Public ListItem CreateDocument (
The string fileName,
Folder targetFolder,
DocumentTemplateType templateType
)

One of DocumentTemplateType I set is OneNote, generated after OneNote online open failure,

Who met? How to solve? Thank you very much!

CodePudding user response:

Onenote can't generate so, want to use specific apis

CodePudding user response:

Should be the code, are generally with csom object, you can take a look at the search object model of the SDK, haven't seen you this kind of writing,

CodePudding user response:

TemplateType at this time, really is 0, did not perform to create,
Copy your complete code, write as if wrong oh,
  • Related