Closed Thread Icon

Topic awaiting preservation: how to get php to write word (.doc) document (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=23652" title="Pages that link to Topic awaiting preservation: how to get php to write word (.doc) document (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: how to get php to write word (.doc) document <span class="small">(Page 1 of 1)</span>\

 
kronk
Paranoid (IV) Inmate

From: Sydney, Autralia
Insane since: Jun 2004

posted posted 10-15-2004 03:39

hi there,

i recently read on the net, tho cannot remember where and can't find it again, how to open a word document and write content to it, then save it to a set dir. anyone know if/how this is done or where i can find out thanks

---------------------------------------------------------------------------------------------------------------------
10/6 Web Solutions

New site online now!

For all your business and commercial web site needs.

Contact 10/6 Web Solutions today for an evaluation of your requirements.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-15-2004 09:44

it'd probably involve the word com object .

you'll find some code snippets searching with google:
http://forums.htmlcenter.com/showthread.php?s=&threadid=1359

oh and there is, which does use an alternative approach:
http://www.phpbuilder.com/columns/yunus20031124.php3

so long,

->Tyberius Prime

kronk
Paranoid (IV) Inmate

From: Sydney, Autralia
Insane since: Jun 2004

posted posted 10-15-2004 20:20

thank you mister Prime.

i found the site i mentioned in prev post, however it missed a few lines of code and some explantions, your post and links done the jobm thanks again

---------------------------------------------------------------------------------------------------------------------
10/6 Web Solutions

New site online now!

For all your business and commercial web site needs.

Contact 10/6 Web Solutions today for an evaluation of your requirements.

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 10-15-2004 21:02

Having hacked out several different fairly advanced macrobased word templates a couple of years back I'd probably go for the second link TP posted.

Either way, you will probably benefit from opening VBA for word locally and play around with the existing VB api's, just open word and press alt+F11 and you are in. You can also record some macros and take a look at the code that is generated.

Why should you do this?
Well if you take a look at the second link above you are using php to go through the com object to access words api. That way it's a lot easier if you have at least some idea of how programming word works.

Then, good luck finding an online server with word & PHP installed. I for one would not have word on a dedicated web server...
/Dan

{cell 260} {Blog}
-{ ?Computer games don?t affect kids; I mean if Pac-Man affected us as kids, we?d all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music.? (Kristian Wilson, Nintendo, Inc, 1989.) }-

« BackwardsOnwards »

Show Forum Drop Down Menu