PHP Classes

Word Doc from PHP string variable - is this possible?

Recommend this page to a friend!

      PHP Classes blog  >  PHP Word Document Gen...  >  All threads  >  Word Doc from PHP string variable -...  >  (Un) Subscribe thread alerts  
Subject:Word Doc from PHP string variable -...
Summary:Can you use this to save a string with text and embedded images?
Messages:2
Author:Trevor Pickett
Date:2015-10-01 06:59:27
Update:2015-10-01 17:55:47
 

  1. Word Doc from PHP string variable -...   Reply   Report abuse  
Picture of Trevor Pickett Trevor Pickett - 2015-10-01 16:28:31
I have a dynamic string variable created from a mysql database that includes text and embedded images (again pulled from the database and converted from base64).

I can output this to a simple html page but have had no luck outputting and saving to Word - which is the ultimate goal.

As a novice to PHP, could you please tell me if your class would work and how I need to code/implement it?

Much appreciated.

Trevor.

  2. Re: Word Doc from PHP string variable -...   Reply   Report abuse  
Picture of Ashraf Gheith Ashraf Gheith - 2015-10-01 17:55:47 - In reply to message 1 from Trevor Pickett
I will try to talk about images in the second part, you can check this example http://www.phpclasses.org/package/8991-PHP-Create-DOCX-Word-document-dynamically-from-HTML.html#view_files/files/examples/58748
Can you please specify if you are using img tags in HTML or how do you show it in HTML?