You are here: Re: Word/Excel file generation « PHP Programming Language « IT news, forums, messages
Re: Word/Excel file generation

Posted by Erwin Moller on 11/14/05 12:00

Thierry wrote:

> Hello.
>
> Is it possible to generate word/excel files in PHP ? with a template
> file ?...
>
> It is possible in Java so I guess it is possible in PHP to. I allready
> know how to do PDF...
>
> Can anyone help me ?
>
> Thx. Titi

Hi Titi,

Yeas, some API's have been written in the past, but they always suffer from
the fact that M$ is changing their format in their newer versions.

I think the safest bet for you is to use Word and Excel themself on a W$
machine as server.
The process in short:
1) Instantiate a new Word-object. (Let PHP do that)
2) Do stuff on that object, like opening a template, etc. etc.
3) Safe a copy somewhere, or stream the copy to a client.
4) close and destroy the object.

The above approach used to be suspect for memoryleaks.
I am unsure how things are now on moderen OS's from M$.

The process is refered to as 'automation' I think.
Google for it for hints and examples.

You can also find many examples on the net, most are written in VBScript,
but do not let that demotivate you: You can use the same api once you
create an object in PHP, since the underlying object (and methods) are the
same.

Good luck.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация