This program shows how to safely use ms office application on the web server. The following problems can occur when doing the office automation: 1) The office application can raise an error. 2) The office application can be unable to close itself. 3) The office application can prompt a user with a massage box. The sample application is addressing these problems.