将数据设置为当前OLE对象
名称 | 类型 | 描述性 |
sData数据库 | 字符串 | OLE对象字符串数据 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!var 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}")!OleObject.SetSizeOleObject.SetPostition(70*36000,30*3600)oSlide.AddObject(oOleObject)!oOleObject.SetData("https://youtu.be/eJxpkjQG6Ew")!builder.SaveFile("pptx", "SetData.pptx")!builder.CloseFile();