Page 1 of 1
is it possible to write in word file
Posted: Fri Feb 27, 2004 7:03 am
by jigaruu
I need to know that is it possible to write in the word file instead of txt file, if it is a .rtf file it will do if its possible to write in it, i searched a lot, but no success, so plz help me out
thanks in advance.
Posted: Fri Feb 27, 2004 7:35 am
by JayBird
You can using the COM objects.
Only works on windows servers though.
Mark
Posted: Fri Feb 27, 2004 7:36 am
by Dr Evil
Well with PHP you can easily output text as you know.
word is not the best choice as it is MS technology. RTF on the otherhand can be read by all. RTF is basically a text file with certain specific tags.
Google will help you with this:
http://www.google.com/search?sourceid=n ... cification
Why not try making a template in word, save it in rtf format, open it with a text editor (ultra edit or such) and look throught the jumble till you find the chunks that interest you.
You'll have to specify the correct header so that the php file is donloaded as rtf.
Hope this helps a bit.
Posted: Fri Feb 27, 2004 7:42 am
by jigaruu
i tried, downloading is possible, and it also opens for editing but the writing is what creating problems, no error message is generated and everything is going on fine, but file is not written or saved.
and also the word format is requested by client so we cannot change the sane, but still if its possible in .rtf format then it can be managed,
Posted: Fri Feb 27, 2004 7:47 am
by Dr Evil
jigaruu wrote:still if its possible in .rtf format then it can be managed,
That is exactly what I'm talking about.
Do you know how to create txt files on the server with php ?
Posted: Fri Feb 27, 2004 7:51 am
by jigaruu
ya i am trying so get back to this as i am done, but it will take time as i am off ofr the day, so talk to you tomorow
Posted: Fri Feb 27, 2004 7:54 am
by Dr Evil
Ok see ya, take care.
Posted: Fri Feb 27, 2004 10:17 pm
by jigaruu
hey i am back and, can u help me i got how to write in text file and save it but same is not working with rtf file.
Posted: Fri Feb 27, 2004 10:36 pm
by Steveo31
Posted: Sat Feb 28, 2004 5:36 am
by Dr Evil
jigaruu wrote:hey i am back and, can u help me i got how to write in text file and save it but same is not working with rtf file.
Show me your code