/    Sign up×
Community /Pin to ProfileBookmark

JavaScript and MSWord

Hi All

I’ve trawled through all the references on this site and others but I still need a basic guide and a few more examples to get me going. Thanks to all for their prior postings.

For within my Javascript function I can

open word
open a new doc
insert into it some text

But I need just a bit more and I’m stuck. I really need to format the text into paragraphs with blank lines here and there, the user will then print or fax it as they please. Its for an intranet site so security isn’t a major problem.

I can see the help in Word which should allow me to do this but has anyone got the source to do this from within Javascript?

Much appreciated.

FG

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Nov 20.2006 — JavaScript can not manilpulate files (open/read/modify). You would have to use a server side language (aka load it to the server) where it could use an api to read it.

If you want to go IE only, you could look into ActiveX

Eric
Copy linkTweet thisAlerts:
@FG1authorNov 20.2006 — Thanks Eric

I am using ActiveX to get as far as I have. As it is for an Intranet application I'm happy to do this. I just need a bit more help on getting my head around ActiveX and MSWord in Javascript. Any pointers?

Thanks
×

Success!

Help @FG1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.23,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...