Last post Nov 30, 2009 09:49 AM by mike426
Nov 25, 2009 04:18 AM|rajeev.sharma.amb|LINK
can i save data from asp page to word file after user submit his data successfully
Nov 25, 2009 02:15 PM|Mike426|LINK
You can use Word Automation, but you have to be careful about concurrency. You could always deposit the data somewhere (database, etc.), and then have a single-threaded process build Word documents off-line. Here's a sample of building a Word document
from form inputs and returning it to the user from a Servlet:
http://www.cognitier.com/downloads/ServletWordDocSample.pdf. It would be just as simple from an asp page. The sample code doesn't show all of the Word Automation APIs available, but there are lots of on-line sources documenting the APIs. If you don't
need to return the Word document to the user who submitted the form, then I'm sure you would be better off using a scheduled process to build the documents from data you've already collected.
Nov 26, 2009 12:05 AM|rajeev.sharma.amb|LINK
brother can u give me link for asp pages
Nov 30, 2009 09:49 AM|Mike426|LINK
The COM APIs for MS Office automation can be found on MSDN. Here's a sample link -
When it's time to return the document to the user, the main requirement is to set the response header properly. Here's a sample link discussing this topic -
Again, watch out for issues like concurrency and process identity.
Hope this helps.