• Sign In
 
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Search
  • Advanced search options...
Tags
  • .NET
  • Altova
  • blogging
  • code samples
  • Codeplex
  • Custom XML
  • DII
  • DIS29500
  • ECMA-376
  • IBM
  • Java
  • Monarch
  • ODF
  • Office 2007
  • OpenXMLDeveloper.org
  • PHP
  • Redmond
  • SharePoint
  • System.IO.Packaging
  • TechEd
  • UOF
  • VSTO
  • Windows
  • WordprocessingML
  • workshops
Archives
Archives
  • January 2012 (1)
  • October 2011 (1)
  • July 2011 (2)
  • April 2011 (1)
  • March 2011 (3)
  • December 2010 (1)
  • August 2010 (1)
  • June 2010 (1)
  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (1)
  • November 2009 (4)
  • October 2009 (1)
  • September 2009 (2)
  • July 2009 (2)
  • June 2009 (4)
  • May 2009 (5)
  • April 2009 (4)
  • March 2009 (4)
  • February 2009 (2)
  • January 2009 (4)
  • December 2008 (4)
  • November 2008 (3)
  • October 2008 (4)
  • September 2008 (3)
  • August 2008 (2)
  • July 2008 (5)
  • June 2008 (7)
  • May 2008 (5)
  • April 2008 (8)
  • March 2008 (14)
  • February 2008 (15)
  • January 2008 (13)
  • December 2007 (12)
  • November 2007 (5)
  • October 2007 (9)
  • September 2007 (6)
  • August 2007 (10)
  • July 2007 (9)
  • June 2007 (8)
  • May 2007 (12)
  • April 2007 (14)
  • March 2007 (12)
  • February 2007 (10)
  • January 2007 (17)
  • December 2006 (14)
  • November 2006 (10)
  • October 2006 (11)
  • September 2006 (12)
  • August 2006 (12)
  • July 2006 (12)
  • June 2006 (23)
  • May 2006 (14)
Common Tasks
  • Blog Home
  • Email Blog Author
  • About
  • RSS for comments
  • RSS for posts

PHPExcel API for Open XML

Doug Mahugh - Office Interoperability
MSDN Blogs > Doug Mahugh > PHPExcel API for Open XML

PHPExcel API for Open XML

Doug Mahugh
30 Apr 2007 12:35 PM
  • Comments 1

PHPExcel is a set of classes that enable Open XML spreadsheet development, available as an open-source project on Codeplex. Using these classes, PHP programmers can easily create spreadsheets with formulas, conditional formatting, and other features. Here's a sample of a spreadsheet created with PHPExcel:

sample spreadsheet

Classes are provided for the main elements you'll need to create richly formatted spreadsheets: a worksheet class, data cell class, style class, and so on. These classes allow PHP developers to generate Open XML spreadsheets easily, with very few lines of code. For example, here are some typical samples of the simple syntax you'll see in code that's based on PHPExcel:

// write a value to a cell
$PHPExcel->getActiveSheet()->setCellValue('D12','Total');

// set document metadata property
$PHPExcel->getProperties()->setCreator('John Doe');

Maarten & JakubThe creators of PHPExcel are Maarten Balliauw and Jakub Vrana. I met Jakub at the Open XML workshop we had in Prague last month, and Maarten attended my presentation at Developer & IT Pro Days in Ghent. Maarten has written an article for the April 2007 issue of php architect magazine that provides some information about how to use PHPExcel and an introduction to the SpreadsheetML file format.

PHP is an extremely popular language for dynamic web pages, and PHPExcel allows those types of applications to generate Open XML spreadsheets without any need for other APIs or server software. As Maarten explains in his php architect article, the use of PHPExcel eliminates any need for special software on the server, and runs just as well (some might say better, but we're working on that :-)) on a Linux server as on a Windows server.

Nice job, Maarten and Jakub! Anybody want to help them extend this cool tool into word-processing documents next?

  • 1 Comments
Codeplex, PHPExcel, code samples, PHP
Comments
  • MSDN Blog Postings » Open XML blogging in 2007
    31 Dec 2007 12:24 AM

    PingBack from http://msdnrss.thecoderblogs.com/2007/12/31/open-xml-blogging-in-2007/

Page 1 of 1 (1 items)
  • © 2012 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy Statement
  • Report Abuse
  • 5.6.402.223