Prev
Font
ExcelExplorer Manual Next
Align


EEStyle::Format

(ExcelExplorer 4.0)

Get format info (EEFormat object).

false EEFormat Format(  )
Parameters
None
Description

Returns EEFormat object containing info about numeric format used by this style.

This method can returns FALSE if file have been explored with option read_format set to FALSE. So before using any methods of EEFormat object you should always check if this function returns valid object.

Print format index and string for the cell, if any


<?php


$format 
$ee->Cell($sheet,$col,$row)->Style()->Format();
if( 
$format ) {

  
$format_string $format->String();
  if( 
$format_string ) {
    echo 
$format_string->UTF8();
  } else {
    echo 
'Format not found or is build-in';
  }

}

?>

 
Prev
Font
Home
Up
Next
Align

 
© 2002-2009 EEPHP.com
All Rights Reserved.