PEAR Manual
Prev |  | Next

# Worksheet::fitToPages

Worksheet::fitToPages -- Store the vertical and horizontal number of pages that will define the

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Worksheet::fitToPages` (integer $width, integer $height)`

## Description

Store the vertical and horizontal number of pages that will define the maximum area printed. It doesn't seem to work with OpenOffice.

## Parameter

- `integer $width` - Maximun width of printed area in pages

- `integer $height` - Maximun heigth of printed area in pages

## Note

This function can not be called statically.

## Example

Example 37-1. Using fitToPages()

Prev | Home | Next
Worksheet::printRowColHeaders | Up | Worksheet::setHPagebreaks