SharePoint online 使用CSOM接口CreateDocument生成的文档大小是0 ?
使用下面的CSOM接口,调用生成新的office文档,结果生成的文件大小是0,打开显示错误。相关接口如下:
Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
public ListItem CreateDocument(
string fileName,
Folder targetFolder,
DocumentTemplateType templateType
)
其中 DocumentTemplateType 我设定的是 OneNote。生成后,onenote online 打开失败。
谁遇到过?怎么解决?谢谢!