void Worksheet::fitToPages ( 
      
       integer $width
      
       , 
       integer $height
      
     )
Store the vertical and horizontal number of pages that will define the maximum area printed. It doesn't seem to work with OpenOffice.
        integer $width -
        Maximun width of printed area in pages
       
        integer $height -
        Maximun heigth of printed area in pages
       
This function can not be called statically.
Using fitToPages()
<?php
?>