Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,001 members, 7,817,964 topics. Date: Sunday, 05 May 2024 at 12:10 AM

How To Generate A Word File .doc/.docx Using Php - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Generate A Word File .doc/.docx Using Php (7694 Views)

PDF, DOC, DOCX To Text Converter Software / How To Make a DESKTOP Executable Software Using PHP,MYSQL,SQLITE / How To Generate A Serial Number And String In Sql (2) (3) (4)

(1) (Reply) (Go Down)

How To Generate A Word File .doc/.docx Using Php by adewasco2k(m): 10:46pm On Dec 24, 2013
Merry Xmas to you all.

I am facing a problem right now and i could use some help.

I will like to know those who have used:

1. Zend Framework component phpLiveDocx or
2. OpenOffice templates

Let me explain what i intend to achieve.

- lets assume i have a template in an Ms word format (not necessarily so, it could be in xml)
the template have something like:



Dear $name,

"<u><b>".$title."</b></u>";

"<p>".$message."</p>";



Now what i want is to populate the above file with variables coming from a form field, then get the filled file in either .doc or .docx

I once came across a plugin that counld do something similar but cant seem to remember the name so i believe somebody here might have done something similar and could give a hint.


Happy holidays guys



Update 1:

i think i found exactly what i want grin

http://www.phpdocx.com/

i will give it a try, suggestions still welcome though

update 2:
Just in case some body needs this read all this

http://stackoverflow.com/questions/124959/create-word-document-using-php-in-linux
http://www.codeproject.com/Questions/297486/Dynamically-generate-a-MS-Word-document-using-HTML
http://www.joelonsoftware.com/items/2008/02/19.html
http://www.phpbuilder.com/columns/yunus20031124.php3
http://webcheatsheet.com/php/create_word_excel_csv_files_with_php.php
Re: How To Generate A Word File .doc/.docx Using Php by Nobody: 10:35am On Dec 17, 2014
Trollin'
Re: How To Generate A Word File .doc/.docx Using Php by adewasco2k(m): 5:03pm On Dec 18, 2014
dhtml18:
Trollin'
Lol.....I think you have a library that does this? Its an old question
Re: How To Generate A Word File .doc/.docx Using Php by Nobody: 10:03pm On Dec 18, 2014
Of course i got the library somewhere in my recycle bin. . . .

(1) (Reply)

Web Development Using ASP / Share Your Gdevit.com Experience Here! All Trolls, Bots etc - stay out!! / Vb 6.0/vb .NET & Intranet/internet Application Development

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.