Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create word document from a web page

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
Hi

Am thinking about trying to convert an access database to a web application. All the reports , queries , forms etc are straight forward enough.

the only stumbling block i can see is the fact that the database creates word documents.

My question is..

is it possible to have ASP / JSP or some other web language create a word document. Every time i try it doesn't seem to work!

any ideas folks ? much appreciated as i would love to web-ise my app but need to create word documents

Hope this helps!

Regards

BuilderSpec
 
I have to wonder if its going to be web based why would you need Word to open it?

In any case, Word is capable of opening standard web page files htm, or html, so i really see no need of going to all the trouble of formatting something into a .doc when its really not necessary. Have ASP create html files instead.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi

The current system uses word document templates, a handy way to set up a good looking document and all the system does it fills in the blanks almost ( does a bit more than that but essentially that's the gist ! )

These documents are then sent to various clients and third parties so need them to exist as a document outside the system, not sure they would accept HTML documents.

so is it possible to create word document ?

Hope this helps!

Regards

BuilderSpec
 
Providing that your webserver has an appropriately licensed version of Word you should be able to use it via the ASP CreateObject method. See to get started

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
hmmm

I have this so far..

dim wd

set wd = createobject("word.application")

wd.visible = true

Now the createobject seems to work, there is a WINWORD.EXE in Task Manager but as soon as i try and do anything with it it fails ..for example the wd.visible = true




Hope this helps!

Regards

BuilderSpec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top