New Post: Header and footer size in landscape?
Hi all, I'm generating a report and need to flick between portrait and landscape. The header/footer is the correct size in portrait but when I switch to landscape it doesn't adjust. Is this a design...
View ArticleNew Post: PHPWord/Writer/Word2007.php on line 70 in a Hosted WebPage
Hello All, I have already readed the post related with this problem: https://phpword.codeplex.com/discussions/352149php_zi But I still haven't resolved my problem. I'm new to php, I understand that I...
View ArticleNew Post: Colspan and Rowspan
Hello! I'am just trying to make it work, but it's not! A have cheked all chages several times, I can't undersdant what I am doing wrong.$table = $section->addTable(); $table->addRow();...
View ArticleNew Post: Colspan and Rowspan
Hello! Someone! Please post files with correct changes. Thanx!
View ArticleNew Post: how to properly handle UTF-8 ? (UTF8)
Just want to share this without modifying the section.php and cell.php... I've just used utf8_decode to reverse the utf8_encode.$section->addText( utf8_decode($text) );
View ArticleNew Post: Table row hide at bottom of every page in a doc
I have a problem while writing table of content in doc file. At the bottom of each page in doc, one line is cutting and hiding. How do i solve this. Below is the...
View ArticleCreated Unassigned: please add a function to Template.php [63]
because my file 's charset is utf-8,not iso-8859-1.thus,i remove utf8_encode relative lines:if(!is_array($replace)) {$replace = utf8_encode($replace);}and it become a new function...
View ArticleEdited Unassigned: please add a function to Template.php [63]
because my file 's charset is utf-8,not iso-8859-1.thus,i remove utf8_encode relative lines:```if(!is_array($replace)) {$replace = utf8_encode($replace);}```and it become a new function...
View ArticleNew Post: Using PHPWord to insert equations?
If I recall correctly, Microsoft Office Word 2007 and later versions have a function that allows users to insert math equations. Is there any way that PHPWord can be used to preform similar actions? I...
View ArticleNew Post: Page Break Adds New Line?
Thanks for this ! I just delete all data in the settings.xml file's compat section and it works ! (directory to the settings.xml file : _PHPWord/staticDocParts/settings.xml )
View ArticleCreated Unassigned: I can't get the source code to create files from examples...
Hi,I tried the Examples that came with the source but unable to get the Examples to generate files. I put a couple of echo statements in the examples to see where it got stuck and found out that it got...
View ArticleNew Post: how can I join two or more pieces with others. docx whit PHPWord
I know that It is not possible to add new PHPWord elements to a loaded template file but how can I join two or more pieces with others. docx whit PHPWord and change some values? Have another way?...
View ArticleNew Comment on "Documentation"
Is there just a simple find-and-replace function? I want to be able to go into an existing section and replace the text there.
View ArticleCreated Unassigned: Does it work with a docx file having "mail-merged"...
Hi, I recently tried to use the PHPWord to fill my docx templates.PHP Word works fine when used in a template with ordinary fields. (like the one given in Examples) but it has issues when I try to do...
View ArticleNew Post: Separating the controller and the view
Hi there, I am using CodeIgnitor and PHPWord for an application that outputs a few reports. Everything is working well but I realise that I am not strictly following the MVC pattern as when I am using...
View ArticleCreated Unassigned: Template::setValue() shortcomings [66]
The Template::setValue() method seems to have a couple of issues that I've discovered.Firstly, as documented, "only single-line values can be replaced". I have found that it is possible to insert...
View ArticleNew Post: Colspan and Rowspan
I write solution! Try this.....1. modify file - /Style/Cell.php (1) add attributes./** * Horizontal align * * @var string */private $_align; /** * for the colspan */private $_gridSpan; /** * for the...
View ArticleNew Post: PHPWord cloning template variables
Immediately apologize for my English because I use a translator . Good day, to upload data in MS WORD pattern using a library PHPWord, on the whole, satisfied . But recently encountered one problem. So...
View ArticleNew Post: how to add new line same shift+enter
how to add new line same shift+enter example word shift+enter asdf asdf example word enter asdf asdf but I want to set line break same shift+enter thanks.
View Article