public function createWorkbookFromTemplate($templateFileName)
    {

        if ($templateFileName == '')
            throw new Exception('Template file not specified');
        //build URI to merge Docs
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '?templatefile=' . $templateFileName;
        //sign URI
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'PUT');
        $json = json_decode($responseStream);
        return $json;

    }
public function createWorkbookFromTemplate($templateFileName)
    {

        if ($templateFileName == '')
            throw new Exception('Template file not specified');
        //build URI to merge Docs
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '?templatefile=' . $templateFileName;
        //sign URI
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'PUT');
        $json = json_decode($responseStream);
        return $json;

    }
public function createWorkbookFromTemplate ( $ templateFileName ) { if ( $ templateFileName == '' ) throw new Exception ( 'Template file not specified' ) ; //build URI to merge Docs $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . '?templatefile=' . $ templateFileName ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'PUT' ) ; $ json = json_decode ( $ responseStream ) ; return $ json ; }
Create Empty Workbook.

@param string $templateFileName Name of the template file.

@return null
@throws Exception
Create Empty Workbook .