PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #8515

Worksheet::setPaper - Page defaults to US letter using $size=9

Details

Submitted2006-08-19 16:46 UTC
Frombenjamin dot bittman at mac dot com
StatusBogus
PackageSpreadsheet_Excel_Writer
PHP Version5.1.4
OSOS X 10.4.7
Roadmaps(Not assigned)

Comments

[2006-08-19 16:46 UTC] benjamin dot bittman at mac dot com

Description:
------------
Using the sample code from the Formatting Tutorial I tried to
set the page size to A4 (see code below).

Regardless of the setting the page defaults to US Letter.

Other functions (e.g., setLandscape, setMargins, fitToPages,
setZoom, etc.) all work fine.

Test script:
---------------
$worksheet->setPaper($size=9);

Expected result:
----------------
Page size should be A4 using $size=9.

Actual result:
--------------
Page size is US Letter using $size=9.

[2006-09-18 11:00 UTC] pear dot php dot net at chsc dot dk

It works for me using OpenOffice.org 2.0 and MS Excel 2003.