Discussion Locked

Javascript and "Print to a file"?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I'd like to know if anybody found a way with Javascript code to Print HTML content to a File? Is there a way to output to a plain ASCII file content from an HTML page!? Create code that would allow the user to output what is displayed to a file!?

I'd appreciate any information!

Thanks!!

Mike@IHS

5 replies

by tjc

You could have them type in there information into a text box and then have javascript program pop open a new Browser window, formatted though your javascript to the format that they want and then they can just use the browsers file/save as command to save the text in this new window to disk as a ascii file.

by fireboss.net

As far as I know there is no (nor should there be) any way to write a file onto the client from client side script. If you want to write an ASCII file to the server, you should be able to instantciate an ADO FileSystemObject using ASP.

This discussion is closed to new replies.