创建带参数的OLE对象
名称 | 类型 | 描述性 |
simageSrc | 字符串 | 图像源应取插图(目前只支持互联网URL或Base64编码图像)。 |
微信 | EMU系统 | OLE对象宽度英语计量单元 |
nH8 | EMU系统 | OLE对象高度英语计量单元 |
sData数据库 | 字符串 | OLE对象字符串数据 |
sapl | 字符串 | 应用ID关联当前OLE对象 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar oOleObject = Api.CreateOleObject("https://api.onlyoffice.com/content/img/docbuilder/examples/ole-object-image.png", 130 * 36000, 90 * 36000, "https://youtu.be/SKGz4pmnpgY", "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}")!varolements=ODocument.GetEplement0oParagraph.AddDrawing(oOleObject)!builder.SaveFile("docx", "CreateOleObject.docx")!builder.CloseFile();