public function addOleObject($oleFile = '', $imageFile = '', $upperLeftRow = 0, $upperLeftColumn = 0, $height = 0, $width = 0)
    {
        if ($this->worksheetName == '') {
            throw new Exception('No Worksheet Specified');
        }
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/worksheets/' . $this->worksheetName . '/oleobjects?upperLeftRow=' .
            $upperLeftRow . '&upperLeftColumn=' . $upperLeftColumn .
            '&height=' . $height . '&width=' . $width .
            '&oleFile=' . $oleFile . '&imageFile=' . $imageFile;
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'PUT');
        $json = json_decode($responseStream);
        if ($json->Code == 200) {
            return true;
        } else {
            return false;
        }

    }
public function addOleObject($oleFile = '', $imageFile = '', $upperLeftRow = 0, $upperLeftColumn = 0, $height = 0, $width = 0)
    {
        if ($this->worksheetName == '') {
            throw new Exception('No Worksheet Specified');
        }
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '/worksheets/' . $this->worksheetName . '/oleobjects?upperLeftRow=' .
            $upperLeftRow . '&upperLeftColumn=' . $upperLeftColumn .
            '&height=' . $height . '&width=' . $width .
            '&oleFile=' . $oleFile . '&imageFile=' . $imageFile;
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'PUT');
        $json = json_decode($responseStream);
        if ($json->Code == 200) {
            return true;
        } else {
            return false;
        }

    }
public function addOleObject ( $ oleFile = '' , $ imageFile = '' , $ upperLeftRow = 0 , $ upperLeftColumn = 0 , $ height = 0 , $ width = 0 ) { if ( $ this -> worksheetName == '' ) { throw new Exception ( 'No Worksheet Specified' ) ; } $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . '/worksheets/' . $ this -> worksheetName . '/oleobjects?upperLeftRow=' . $ upperLeftRow . '&upperLeftColumn=' . $ upperLeftColumn . '&height=' . $ height . '&width=' . $ width . '&oleFile=' . $ oleFile . '&imageFile=' . $ imageFile ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'PUT' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) { return true ; } else { return false ; } }
Add OLE object to worksheet.

@param string $oleFile The name of ole file.
@param string $imageFile The name of image file.
@param integer $upperLeftRow Upper left row index.
@param integer $upperLeftColumn Upper left column index.
@param integer $height Height of oleObject, in unit of pixel.
@param integer $width Width of oleObject, in unit of pixel.

@return boolean
@throws Exception
Add OLE object to worksheet .