0

Hi.
I want to know how it is possible to export data through php to an already available template excel and word, and then how to read from those template?

regards,

3
Contributors
7
Replies
9
Views
9 Years
Discussion Span
Last Post by ikinothman
0

i don't think you can export and fill a template with php. I have however exported data from a database to excel with php. My suggestion is that you recreate the template in html and have server side code fill the template then export. Excel will read html tables.

0

Thanks for the replying,
maybe I could not express my problem well, or did not get your idea.

I have have a word template already created, what I need to write data through php into that template.

and about the excel as you mentioned, possible to put an example of that ?

0

i will see if i can write some code for you. can you attach a template? maybe i can find a better solution once i see how the template are formatted ect.

0

Hi.
I attached the template, just I need the data from mysql written inside the cells of the table, and also if the data are more than one page then automatically other pages create.

Thanks

0

since ms word decided to expire right now, can you add %%ID%%, ect in the empty cells so I can find it in the template.

0

Hi.

since ms word decided to expire right now, can you add %%ID%%, ect in the empty cells so I can find it in the template.

Attachments template.JPG 14.36 KB
0

how is actually the code look like?i need to complete my project on this topic as well..and i'm using PHP....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.