<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>phpword Wiki Rss Feed</title><link>http://phpword.codeplex.com/wikipage</link><description>phpword Wiki Rss Description</description><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C26864</link><description>Hi i m new for this &amp;#10;please let me know &amp;#10;How to add table in  word file using this PHP word&amp;#63;</description><author>kishore1587</author><pubDate>Wed, 13 Mar 2013 15:36:05 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20130313033605P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C25229</link><description>docx uses a very special unit for calculating width and height, etc. It took me a long time to search for it. In case you need to set a length too read this first&amp;#58; http&amp;#58;&amp;#47;&amp;#47;startbigthinksmall.wordpress.com&amp;#47;2010&amp;#47;01&amp;#47;04&amp;#47;points-inches-and-emus-measuring-units-in-office-open-xml&amp;#47;</description><author>huanga</author><pubDate>Tue, 09 Oct 2012 17:31:28 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20121009053128P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C25144</link><description>Is it possible to open a doc file, change properties &amp;#40;title, tags, subject, ...&amp;#41; and save the file &amp;#63;</description><author>djodjo</author><pubDate>Tue, 02 Oct 2012 07:51:10 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20121002075110A</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C24322</link><description>any possibilit&amp;#233; to read a docx file with bookmarks or position of cursor &amp;#63;</description><author>papyloup</author><pubDate>Mon, 09 Jul 2012 12:54:53 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120709125453P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C24170</link><description>hey.. i want to create a msword 2003 file. i am doubtful whether it supports, if so, can u help me pls.. Thanks in Advance</description><author>sreevathsanr</author><pubDate>Fri, 22 Jun 2012 18:36:03 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120622063603P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C23771</link><description>great tool, but some problem with utf-8 characters&amp;#10;&amp;#10;Maybe could be done same as is done odtPHP for OpenOffice, use formated document template and fill with data. This is ismplest and easiest way to create document,&amp;#10;each client can have his own style without changing the source code</description><author>danivu</author><pubDate>Mon, 21 May 2012 13:10:20 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120521011020P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C23461</link><description>nn</description><author>mghipparagi</author><pubDate>Fri, 27 Apr 2012 10:45:21 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120427104521A</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C23302</link><description>Hi All,&amp;#10;Referring to the discussion thread, &amp;#34;Calling addText&amp;#40;&amp;#41; method gives a line break at the end of string&amp;#34;, which is similar to the problem at my hand. &amp;#10;I want to give different styles to the words in a line.. Pls help with me with the solution.&amp;#10;Thanks in Advance.&amp;#10;&amp;#10;-Vathsan</description><author>sreevathsanr</author><pubDate>Sat, 14 Apr 2012 22:08:27 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120414100827P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C22300</link><description>need help with utf-8 support...</description><author>caashie</author><pubDate>Mon, 23 Jan 2012 13:52:00 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20120123015200P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C20404</link><description>I have found the reason why Cyrillic didn&amp;#39;t displayed correct. The library in Section.php do utf8_encode&amp;#40;&amp;#41; twice. English letters don&amp;#39;t care about double utf8_encode&amp;#40;&amp;#41;, but russian letters turns to abracadabra-language. So, remark all of utf8_encode&amp;#40;&amp;#41; functions in Section.php and all work done. Need not to encode to utf8 without checking if it already in utf8. If source already in UTF-8, then we&amp;#39;ll needn&amp;#39;t to encode it.</description><author>onekit</author><pubDate>Wed, 20 Jul 2011 08:06:37 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110720080637A</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C20387</link><description>Problem with UTF-8, can&amp;#39;t write Cyrillic.</description><author>onekit</author><pubDate>Mon, 18 Jul 2011 07:47:23 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110718074723A</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C19680</link><description>Its great....Is there any possibilities to read docx document&amp;#63;</description><author>hardikhardik</author><pubDate>Wed, 18 May 2011 13:06:11 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110518010611P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C19504</link><description>it&amp;#39;s work great ... But &amp;#58; i have some problems with with utf-8 characters, do you have any idea how to solve this matter ...</description><author>lagrandeours</author><pubDate>Tue, 03 May 2011 23:35:49 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110503113549P</guid></item><item><title>New Comment on "Documentation"</title><link>http://phpword.codeplex.com/documentation?&amp;ANCHOR#C18806</link><description>great&amp;#33;</description><author>panuwat27</author><pubDate>Mon, 07 Mar 2011 17:50:59 GMT</pubDate><guid isPermaLink="false">New Comment on "Documentation" 20110307055059P</guid></item><item><title>Updated Wiki: Home</title><link>http://phpword.codeplex.com/wikipage?version=15</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Welcome to the homepage of PHPWord!&lt;/h1&gt;
PHPWord is a library written in PHP that create word documents. &lt;br /&gt;No Windows operating system is needed for usage because the result are docx files (Office Open XML) that can be opened by all major office software.&lt;br /&gt;&lt;br /&gt;PHPWord is based on the fantastic &lt;a href="http://phpexcel.codeplex.com" class="externalLink"&gt;PHPExcel&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; / &lt;a href="http://phppowerpoint.codeplex.com" class="externalLink"&gt;PHPPowerPoint&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; libraries.&lt;br /&gt;
&lt;h2&gt;Major Features&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;Insert and format document sections&lt;/li&gt;
&lt;li&gt;Insert and format Text elements&lt;/li&gt;
&lt;li&gt;Insert Text breaks&lt;/li&gt;
&lt;li&gt;Insert Page breaks&lt;/li&gt;
&lt;li&gt;Insert and format Images and binary OLE-Objects&lt;/li&gt;
&lt;li&gt;Insert and format watermarks (&lt;b&gt;new&lt;/b&gt;)&lt;/li&gt;
&lt;li&gt;Insert Header / Footer&lt;/li&gt;
&lt;li&gt;Insert and format Tables&lt;/li&gt;
&lt;li&gt;Insert native Titles and Table-of-contents&lt;/li&gt;
&lt;li&gt;Insert and format List elements&lt;/li&gt;
&lt;li&gt;Insert and format hyperlinks&lt;/li&gt;
&lt;li&gt;Very simple template system (&lt;b&gt;new&lt;/b&gt;)&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;See the &lt;a href="http://phpword.codeplex.com/documentation" class="externalLink"&gt;Documentation&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; for all details.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Mon, 26 Jul 2010 19:47:54 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100726074754P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://phpword.codeplex.com/documentation?version=18</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Requirements&lt;/h1&gt;
&lt;ul&gt;&lt;li&gt;PHP 5.2.x or newer&lt;/li&gt;
&lt;li&gt;PHP Extension ZipArchive&lt;/li&gt;
&lt;li&gt;PHP Extension xmllib&lt;/li&gt;
&lt;li&gt;For opening by PHPWord created files in Microsoft Office &amp;lt; 2007 you need the &amp;quot;Microsoft Office Compatibility Pack&amp;quot;. You can get it here for free: &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466" class="externalLink"&gt;Microsoft Office Compability Pack&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Installation and configuration&lt;/h1&gt;
Installation and configuration is very easy:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extract the ZIP-Archive&lt;/li&gt;
&lt;li&gt;Copy the source files to your webserver&lt;/li&gt;
&lt;li&gt;If your PHPWord working directory isn&amp;#39;t your PHP include path you can set the PHPWord base path. To set the PHPWord base path open the PHPWord.php inside the root folder and edit the value of PHPWORD_BASE_PATH constant.&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Basic example&lt;/h1&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// Include the PHPWord.php, all other classes were loaded by an autoloader&lt;/span&gt;
&lt;span style="color:Blue;"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515;"&gt;&amp;#39;PHPWord.php&amp;#39;&lt;/span&gt;;

&lt;span style="color:Green;"&gt;// Create a new PHPWord Object&lt;/span&gt;
$PHPWord = &lt;span style="color:Blue;"&gt;new&lt;/span&gt; PHPWord();

&lt;span style="color:Green;"&gt;// Every element you want to append to the word document is placed in a section. So you need a section:&lt;/span&gt;
$section = $PHPWord-&amp;gt;createSection();

&lt;span style="color:Green;"&gt;// After creating a section, you can append elements:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world!&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can directly style your text by giving the addText function an array:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted.&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Tahoma&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true));

&lt;span style="color:Green;"&gt;// If you often need the same style again you can create a user defined style to the word document&lt;/span&gt;
&lt;span style="color:Green;"&gt;// and give the addText function the name of the style:&lt;/span&gt;
$PHPWord-&amp;gt;addFontStyle(&lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;14, &lt;span style="color:#A31515;"&gt;&amp;#39;color&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;1B2232&amp;#39;&lt;/span&gt;));
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted by a user defined style&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can also putthe appended element to local object an call functions like this:&lt;/span&gt;
$myTextElement = $section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World!&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setBold();
$myTextElement-&amp;gt;setName(&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setSize(22);

&lt;span style="color:Green;"&gt;// At least write the document to webspace:&lt;/span&gt;
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, &lt;span style="color:#A31515;"&gt;&amp;#39;Word2007&amp;#39;&lt;/span&gt;);
$objWriter-&amp;gt;save(&lt;span style="color:#A31515;"&gt;&amp;#39;helloWorld.docx&amp;#39;&lt;/span&gt;);
&lt;/pre&gt;&lt;/div&gt;
&lt;h1&gt;Documentation&lt;/h1&gt;You can download examples and a full documentation of PHPWord &lt;a href="http://phpword.codeplex.com/releases/view/49543" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1&gt;Font Style changes between 0.6.1 and 0.6.2:&lt;/h1&gt;With the release 0.6.2 the paragraph properties has been moved into a separate Class!&lt;br /&gt;So, every text element now has two style properties: FONT and PARAGRAPH. See the following example for more information:&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// OLD release, 0.6.1:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont);

&lt;span style="color:Green;"&gt;// NEW release, 0.6.2:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;);
$styleParagraph = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont, $styleParagraph);
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Sun, 25 Jul 2010 19:56:11 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100725075611P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://phpword.codeplex.com/documentation?version=17</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Requirements&lt;/h1&gt;
&lt;ul&gt;&lt;li&gt;PHP 5.2.x or newer&lt;/li&gt;
&lt;li&gt;PHP Extension ZipArchive&lt;/li&gt;
&lt;li&gt;PHP Extension xmllib&lt;/li&gt;
&lt;li&gt;For opening by PHPWord created files in Microsoft Office &amp;lt; 2007 you need the &amp;quot;Microsoft Office Compatibility Pack&amp;quot;. You can get it here for free: &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466" class="externalLink"&gt;Microsoft Office Compability Pack&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Installation and configuration&lt;/h1&gt;
Installation and configuration is very easy:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extract the ZIP-Archive&lt;/li&gt;
&lt;li&gt;Copy the source files to your webserver&lt;/li&gt;
&lt;li&gt;If your PHPWord working directory isn&amp;#39;t your PHP include path you can set the PHPWord base path. To set the PHPWord base path open the PHPWord.php inside the root folder and edit the value of PHPWORD_BASE_PATH constant.&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Basic example&lt;/h1&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// Include the PHPWord.php, all other classes were loaded by an autoloader&lt;/span&gt;
&lt;span style="color:Blue;"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515;"&gt;&amp;#39;PHPWord.php&amp;#39;&lt;/span&gt;;

&lt;span style="color:Green;"&gt;// Create a new PHPWord Object&lt;/span&gt;
$PHPWord = &lt;span style="color:Blue;"&gt;new&lt;/span&gt; PHPWord();

&lt;span style="color:Green;"&gt;// Every element you want to append to the word document is placed in a section. So you need a section:&lt;/span&gt;
$section = $PHPWord-&amp;gt;createSection();

&lt;span style="color:Green;"&gt;// After creating a section, you can append elements:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world!&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can directly style your text by giving the addText function an array:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted.&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Tahoma&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true));

&lt;span style="color:Green;"&gt;// If you often need the same style again you can create a user defined style to the word document&lt;/span&gt;
&lt;span style="color:Green;"&gt;// and give the addText function the name of the style:&lt;/span&gt;
$PHPWord-&amp;gt;addFontStyle(&lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;14, &lt;span style="color:#A31515;"&gt;&amp;#39;color&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;1B2232&amp;#39;&lt;/span&gt;));
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted by a user defined style&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can also putthe appended element to local object an call functions like this:&lt;/span&gt;
$myTextElement = $section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World!&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setBold();
$myTextElement-&amp;gt;setName(&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setSize(22);

&lt;span style="color:Green;"&gt;// At least write the document to webspace:&lt;/span&gt;
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, &lt;span style="color:#A31515;"&gt;&amp;#39;Word2007&amp;#39;&lt;/span&gt;);
$objWriter-&amp;gt;save(&lt;span style="color:#A31515;"&gt;&amp;#39;helloWorld.docx&amp;#39;&lt;/span&gt;);
&lt;/pre&gt;&lt;/div&gt;
&lt;h1&gt;Documentation&lt;/h1&gt;You can download examples and a full documentation of PHPWord &lt;a href="http://phpword.codeplex.com/releases/view/49543" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1&gt;Font Style changes between 0.6.1 and 0.6.2:&lt;/h1&gt;With the release 0.6.2 the paragraph properties has been moved into a separate Class!&lt;br /&gt;So, every text element now has two style properties: FONT and PARAGRAPH. See the following example for more information:&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// OLD release, 0.6.1:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont);
&lt;span style="color:Green;"&gt;// In release 0.6.2 the above code will rise a E_USER_NOTICE because the properties &amp;quot;align&amp;quot; and &amp;quot;spaceAfter&amp;quot; are no more integrated in the font style.&lt;/span&gt;

&lt;span style="color:Green;"&gt;// NEW release, 0.6.2:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;);
$styleParagraph = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont, $styleParagraph);
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Sun, 25 Jul 2010 19:55:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100725075553P</guid></item><item><title>Updated Wiki: Documentation</title><link>http://phpword.codeplex.com/documentation?version=16</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Requirements&lt;/h1&gt;
&lt;ul&gt;&lt;li&gt;PHP 5.2.x or newer&lt;/li&gt;
&lt;li&gt;PHP Extension ZipArchive&lt;/li&gt;
&lt;li&gt;PHP Extension xmllib&lt;/li&gt;
&lt;li&gt;For opening by PHPWord created files in Microsoft Office &amp;lt; 2007 you need the &amp;quot;Microsoft Office Compatibility Pack&amp;quot;. You can get it here for free: &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=941b3470-3ae9-4aee-8f43-c6bb74cd1466" class="externalLink"&gt;Microsoft Office Compability Pack&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Installation and configuration&lt;/h1&gt;
Installation and configuration is very easy:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Extract the ZIP-Archive&lt;/li&gt;
&lt;li&gt;Copy the source files to your webserver&lt;/li&gt;
&lt;li&gt;If your PHPWord working directory isn&amp;#39;t your PHP include path you can set the PHPWord base path. To set the PHPWord base path open the PHPWord.php inside the root folder and edit the value of PHPWORD_BASE_PATH constant.&lt;/li&gt;&lt;/ul&gt;

&lt;h1&gt;Basic example&lt;/h1&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// Include the needed files PHPWord.php and PHPWord/IOFactory.php&lt;/span&gt;
&lt;span style="color:Blue;"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515;"&gt;&amp;#39;PHPWord.php&amp;#39;&lt;/span&gt;;
&lt;span style="color:Blue;"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515;"&gt;&amp;#39;PHPWord/IOFactory.php&amp;#39;&lt;/span&gt;;

&lt;span style="color:Green;"&gt;// Create a new PHPWord Object&lt;/span&gt;
$PHPWord = &lt;span style="color:Blue;"&gt;new&lt;/span&gt; PHPWord();

&lt;span style="color:Green;"&gt;// Every element you want to append to the word document is placed in a section. So you need a section:&lt;/span&gt;
$section = $PHPWord-&amp;gt;createSection();

&lt;span style="color:Green;"&gt;// After creating a section, you can append elements:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world!&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can directly style your text by giving the addText function an array:&lt;/span&gt;
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted.&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Tahoma&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true));

&lt;span style="color:Green;"&gt;// If you often need the same style again you can create a user defined style to the word document&lt;/span&gt;
&lt;span style="color:Green;"&gt;// and give the addText function the name of the style:&lt;/span&gt;
$PHPWord-&amp;gt;addFontStyle(&lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;, &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;14, &lt;span style="color:#A31515;"&gt;&amp;#39;color&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;1B2232&amp;#39;&lt;/span&gt;));
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello world! I am formatted by a user defined style&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;myOwnStyle&amp;#39;&lt;/span&gt;);

&lt;span style="color:Green;"&gt;// You can also putthe appended element to local object an call functions like this:&lt;/span&gt;
$myTextElement = $section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World!&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setBold();
$myTextElement-&amp;gt;setName(&lt;span style="color:#A31515;"&gt;&amp;#39;Verdana&amp;#39;&lt;/span&gt;);
$myTextElement-&amp;gt;setSize(22);

&lt;span style="color:Green;"&gt;// At least write the document to webspace:&lt;/span&gt;
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, &lt;span style="color:#A31515;"&gt;&amp;#39;Word2007&amp;#39;&lt;/span&gt;);
$objWriter-&amp;gt;save(&lt;span style="color:#A31515;"&gt;&amp;#39;helloWorld.docx&amp;#39;&lt;/span&gt;);
&lt;/pre&gt;&lt;/div&gt;
&lt;h1&gt;Documentation&lt;/h1&gt;You can download examples and a full documentation of PHPWord &lt;a href="http://phpword.codeplex.com/releases/view/49543" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1&gt;Font Style changes between 0.6.1 and 0.6.2:&lt;/h1&gt;With the release 0.6.2 the paragraph properties has been moved into a separate Class!&lt;br /&gt;So, every text element now has two style properties: FONT and PARAGRAPH. See the following example for more information:&lt;br /&gt;&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Green;"&gt;// OLD release, 0.6.1:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont);
&lt;span style="color:Green;"&gt;// In release 0.6.2 the above code will rise a E_USER_NOTICE because the properties &amp;quot;align&amp;quot; and &amp;quot;spaceAfter&amp;quot; are no more integrated in the font style.&lt;/span&gt;

&lt;span style="color:Green;"&gt;// NEW release, 0.6.2:&lt;/span&gt;
$styleFont = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;bold&amp;#39;&lt;/span&gt;=&amp;gt;true, &lt;span style="color:#A31515;"&gt;&amp;#39;size&amp;#39;&lt;/span&gt;=&amp;gt;16, &lt;span style="color:#A31515;"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;Calibri&amp;#39;&lt;/span&gt;);
$styleParagraph = &lt;span style="color:Blue;"&gt;array&lt;/span&gt;(&lt;span style="color:#A31515;"&gt;&amp;#39;align&amp;#39;&lt;/span&gt;=&amp;gt;&lt;span style="color:#A31515;"&gt;&amp;#39;center&amp;#39;&lt;/span&gt;, &lt;span style="color:#A31515;"&gt;&amp;#39;spaceAfter&amp;#39;&lt;/span&gt;=&amp;gt;100);
$section-&amp;gt;addText(&lt;span style="color:#A31515;"&gt;&amp;#39;Hello World&amp;#39;&lt;/span&gt;, $styleFont, $styleParagraph);
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Sun, 25 Jul 2010 10:12:07 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Documentation 20100725101207A</guid></item><item><title>Updated Wiki: Home</title><link>http://phpword.codeplex.com/wikipage?version=14</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Welcome to the homepage of PHPWord!&lt;/h1&gt;
PHPWord is a library written in PHP that create word documents. &lt;br /&gt;No Windows operating system is needed for usage because the result are docx files (Office Open XML) that can be opened by all major office software.&lt;br /&gt;&lt;br /&gt;PHPWord is based on the fantastic &lt;a href="http://phpexcel.codeplex.com" class="externalLink"&gt;PHPExcel&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; / &lt;a href="http://phppowerpoint.codeplex.com" class="externalLink"&gt;PHPPowerPoint&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; libraries.&lt;br /&gt;
&lt;h2&gt;Major Features&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;Insert and format document sections&lt;/li&gt;
&lt;li&gt;Insert and format Text elements&lt;/li&gt;
&lt;li&gt;Insert Text breaks&lt;/li&gt;
&lt;li&gt;Insert Page breaks&lt;/li&gt;
&lt;li&gt;Insert and format Images and OLE-Objects&lt;/li&gt;
&lt;li&gt;Insert and format watermarks (&lt;b&gt;new&lt;/b&gt;)&lt;/li&gt;
&lt;li&gt;Insert Header / Footer&lt;/li&gt;
&lt;li&gt;Insert and format Tables&lt;/li&gt;
&lt;li&gt;Insert native Titles and Table-of-contents&lt;/li&gt;
&lt;li&gt;Insert and format List elements&lt;/li&gt;
&lt;li&gt;Insert and format hyperlinks&lt;/li&gt;
&lt;li&gt;Very simple template system (&lt;b&gt;new&lt;/b&gt;)&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;See the &lt;a href="http://phpword.codeplex.com/documentation" class="externalLink"&gt;Documentation&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; for all details.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Sat, 24 Jul 2010 17:19:53 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100724051953P</guid></item><item><title>Updated Wiki: Home</title><link>http://phpword.codeplex.com/wikipage?version=13</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Welcome to the homepage of PHPWord!&lt;/h1&gt;
PHPWord is a library written in PHP that create word documents. &lt;br /&gt;No Windows operating system is needed for usage because the result are docx files (Office Open XML) that can be opened by all major office software.&lt;br /&gt;&lt;br /&gt;PHPWord is based on the fantastic &lt;a href="http://phpexcel.codeplex.com" class="externalLink"&gt;PHPExcel&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; / &lt;a href="http://phppowerpoint.codeplex.com" class="externalLink"&gt;PHPPowerPoint&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; libraries.&lt;br /&gt;
&lt;h2&gt;Major Features&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;Insert and format document sections&lt;/li&gt;
&lt;li&gt;Insert and format Text elements&lt;/li&gt;
&lt;li&gt;Insert Text breaks&lt;/li&gt;
&lt;li&gt;Insert Page breaks&lt;/li&gt;
&lt;li&gt;Insert and format Images and OLE-Objects&lt;/li&gt;
&lt;li&gt;Insert and format watermarks &lt;b&gt;new&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Insert Header / Footer&lt;/li&gt;
&lt;li&gt;Insert and format Tables&lt;/li&gt;
&lt;li&gt;Insert native Titles and Table-of-contents&lt;/li&gt;
&lt;li&gt;Insert and format List elements&lt;/li&gt;
&lt;li&gt;Insert and format hyperlinks&lt;/li&gt;
&lt;li&gt;Very simple template system &lt;b&gt;new&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;See the &lt;a href="http://phpword.codeplex.com/documentation" class="externalLink"&gt;Documentation&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; for all details.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>raw_venture_ad</author><pubDate>Sat, 24 Jul 2010 17:19:33 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100724051933P</guid></item></channel></rss>