IXlsOLEObjects
COM interface ( getting help with interfaces )

 

interface IXlsOLEObjects : IDispatch
{
  [id(1),propget] HRESULT Count([out, retval]int* nbobjects);
  [id(2),propget] HRESULT Item([in]int i, [out, retval]IXlsOLEObject** oleObject);
  [id(3)        ] HRESULT NewOLEObject([in]BSTR filename, [in]int row1, [in]int col1, [in]int row2, [in]int col2, [in]int topoffset, [in]int leftoffset, [in]int bottomoffset, [in]int rightoffset, [out, retval]IXlsOLEObject** oleobject);
  [id(4)        ] HRESULT NewOLEObjectInPixels([in]BSTR filename, [in]int top, [in]int left, [in]int bottom, [in]int right, [out, retval]IXlsOLEObject** oleobject);

}

 

HRESULT Count([out, retval]int* nbobjects);
returns how many OLE objects are stored.

HRESULT Item([in]int i, [out, retval]IXlsOLEObject** oleObject);
returns the i-th OLE object. The index starts at 1.

HRESULT NewOLEObject([in]BSTR filename, [in]int row1, [in]int col1, [in]int row2, [in]int col2, [in]int topoffset, [in]int leftoffset, [in]int bottomoffset, [in]int rightoffset, [out, retval]IXlsOLEObject** oleobject);
inserts an OLE object by passing a filepath to a file (for instance a Word document).

HRESULT NewOLEObjectInPixels([in]BSTR filename, [in]int top, [in]int left, [in]int bottom, [in]int right, [out, retval]IXlsOLEObject** oleobject);
inserts an OLE object by passing a filepath to a file (for instance a Word document). Other parameters are expressed in pixels.