GetData

GetData()++{{字符串}

返回当前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)!var sData=OleObject.GetDataodeptes = Api.Createlementsod.adText (“OLE对象数据:+sData”)oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetData.docx")!builder.CloseFile();

结果文档