PDA

View Full Version : Saving Pages to WORD


Unicorn
04-14-2005, 10:03 PM
Hello all,
Just a thought...Using

Response.ContentType = "application/msword"

to save asp pages to MS Word, saves the text on the pages OK, but, pictures, icons etc are just saved as a link to the original picture file . If the picture/image is not on the current PC opening the WORD file, then none is shown.. I was wondering if I could save the asp pages WITH images/pictures & icons using MS WORD on the server and then the users downloading the .doc file from the server to their PC, would this embed the pictures etc in the .doc file, so it could be shown on any PC. (which has WORD or a WORD Viewer installed).
If this is possible could someone point me in the direction as to how to get started opening WORD on the server and saving the .doc file on the server..please..>>

reubenb
04-15-2005, 05:27 AM
Hi,
I don't think there is a way in plain ASP code to do this because Word has its way of doing things.
You can download a dll file so you can do
objWord.ConvertRTF("C:\something.doc")

Unfortunetly, the one I found cost money
See http://www.easybyte.com/products/rtf2html.html

However, try Google for some more:
http://www.google.com.au/search?hl=en&q=asp+convert+to+word+rtf&meta=

Unicorn
04-15-2005, 01:20 PM
Many thanks Runbenb, I'll have a look... thanks for taking the time to reply.....cul>>