PHPExcel_Writer_Abstract

category | PHPExcel
package | PHPExcel_Writer
copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

### Methods

## Get disk caching directory

    getDiskCachingDirectory() : string

### Returns

`string`

## Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.

    getIncludeCharts() : boolean

If false (the default) it will ignore any charts defined in the PHPExcel object.

### Returns

`boolean`

## Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet viewer when opening the file If false, then formulae are not calculated on save.

    getPreCalculateFormulas() : boolean

This is faster for saving in PHPExcel, but slower when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself

### Returns

`boolean`

## Get use disk caching where possible?

    getUseDiskCaching() : boolean

### Returns

`boolean`

## Save PHPExcel to file

    save($pFilename)

Inherited

@param string $pFilename Name of the file to save

inherited_from | \PHPExcel_Writer_IWriter::save()

### Parameters

#### $pFilename

### Exceptions

`\PHPExcel_Writer_Exception` |

## Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.

    setIncludeCharts(boolean $pValue) : \PHPExcel_Writer_IWriter

Set to false (the default) to ignore charts.

### Parameters

#### $pValue

`boolean`

### Returns

`\PHPExcel_Writer_IWriter`

## Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae on save Set to false to prevent precalculation of formulae on save.

    setPreCalculateFormulas(boolean $pValue) : \PHPExcel_Writer_IWriter

### Parameters

#### $pValue

`boolean`

Pre-Calculate Formulas?

### Returns

`\PHPExcel_Writer_IWriter`

## Set use disk caching where possible?

    setUseDiskCaching(boolean $pValue, string $pDirectory) : \PHPExcel_Writer_Excel2007

### Parameters

#### $pValue

`boolean`

#### $pDirectory

`string`

Disk caching directory

### Exceptions

`\PHPExcel_Writer_Exception` | when directory does not exist

### Returns

`\PHPExcel_Writer_Excel2007`

### Properties

##

    $_diskCachingDirectory : string

##

    $_includeCharts : boolean

##

    $_preCalculateFormulas : boolean

##

    $_useDiskCaching : boolean