Quantcast
Channel: PHPWord
Browsing all 450 articles
Browse latest View live

New Comment on "Documentation"

hi,can it make the part of word document protected? the name in the word office is limited to edit.

View Article


New Post: Table cell - horizontal align?

I was able to center the contents of my table cells like this:$center = array('spaceAfter' => 0, 'align' => 'center'); $table_block_format = array( 'borderSize' => 7, 'cellMarginTop' => 0,...

View Article


New Post: Calling addText() method gives a line break at the end of string

as I can insert a newline or linebreak in this texRun? like that:Fecha de nacimiento: 11/07/1982 DNI: 1 07988921D Nacionalidad: Española$objTextRun = $section->createTextRun('');...

View Article

New Post: Fatal error: Call to a member function loadTemplate() on a...

hi, i would like to add a style to my variables comming from the data base for exemple let's say that i have a table users; in the table i have contact_first_name contact_last_name, adress, phone, and...

View Article

Created Unassigned: pull request doesn't run [67]

can you merge my change?https://phpword.codeplex.com/SourceControl/network/forks/nicolx/phpword

View Article


New Post: when adding a table to doc - unable to view file in google docs/drive

hi all im using PHPword to create reports online and send them as email attachments, for the example i use the "document with table" code from the examples folder, save the file on the server and send...

View Article

Created Unassigned: Template setValue doesn't work with characters contain...

I was try with sample Template.php in download packet with value contain '&' and get error "Illegal name character."$PHPWord = new PHPWord();$document =...

View Article

Edited Unassigned: Template setValue doesn't work with values contain '&' [68]

I was try with sample Template.php in download packet with value contain '&' and get error "Illegal name character."$PHPWord = new PHPWord();$document =...

View Article


Commented Issue: How to add image from url? [52]

Hello!I try add image from my site (http://mysite/image.php).code:```<?php require_once '../PHPWord.php';$PHPWord = new PHPWord();$section =...

View Article


New Post: Change word format

Hi, Is it possible to change an uploaded .doc file to .docx? Thanks,

View Article

New Post: Is it possible to convert doc to docx?

I have tried cindydolan's answer but all it is doing is creating a blank file. It is not getting the text from the original .doc file. Any ideas? Thanks,

View Article

Commented Unassigned: Template setValue doesn't work with values contain '&'...

I was try with sample Template.php in download packet with value contain '&' and get error "Illegal name character."$PHPWord = new PHPWord();$document =...

View Article

New Post: Euro sign

Got the same problem and tried the code of Eclectic. It didn't worked for me and so i modified it a little bit ... I added this line: $text = str_replace("E_U_R_O", "€" ,$text); On the same position...

View Article


New Post: word save as

Hi, i test the phpword, it's work but i have a question, it's possible when we make the word document to save as in my desktop and not in the server? thanks

View Article

New Post: word save as

lo que yo he echo es esto Guardo en una carpeta del servidor $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007'); $objWriter->save('Ruta_carpeta_escribible/temp/Text.docx'); y doy un...

View Article


New Post: Apply style to a table borderRightSize only affects the first row

I'm giving style to a table (all 4 outer edges), but the problem is that it only affects the first row.<?php require_once 'phpword/PHPWord.php'; $PHPWord = new PHPWord(); $styleTable1 =...

View Article

Image may be NSFW.
Clik here to view.

New Post: Apply style to a table borderRightSize only affects the first row

esta es la tabla linkhttps://www.dropbox.com/s/mhl6cek2xdelrbu/tabla.png

View Article


Commented Issue: implementation of table - colspan [48]

It would be a huge improvement to be able to create cells that combine different collumns into 1.Comments: Hi jc, Sorry for the delay. Are you still having issues? I haven't reviewed the code recently,...

View Article

Commented Unassigned: setValue() not working [57]

here is my php code:```$PHPWord = new PHPWord();$template = $PHPWord->loadTemplate(APPPATH.'files/test.docx');$template->setValue('test1', 'hello');$template->setValue('test2',...

View Article

Commented Unassigned: Template setValue doesn't work with values contain '&'...

I was try with sample Template.php in download packet with value contain '&' and get error "Illegal name character."$PHPWord = new PHPWord();$document =...

View Article
Browsing all 450 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>