Another mod for HTML Writer

Aug 20, 2009 at 12:54 PM

Just another thing I ran into...added a case for the border styles to support the BORDER_DOUBLE:

 

	private function _mapBorderStyle($borderStyle) {
		switch ($borderStyle) {
			case PHPExcel_Style_Border::BORDER_NONE: return '0px';
			case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed';
			case PHPExcel_Style_Border::BORDER_DOTTED: return '1px dotted';
			// START TIMEWARNER
			case PHPExcel_Style_Border::BORDER_DOUBLE: return '3px double';
			// END TIMEWARNER
			case PHPExcel_Style_Border::BORDER_THICK: return '2px solid';
			default: return '1px solid'; // map others to thin
		}
	}

Just in case someone finds it useful

Matt

Developer
Aug 20, 2009 at 1:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.