|
Andraw -> Issues while Generating Word Report in Server-Side in ASP (1/24/2005 21:51:12)
|
Hi, all, I create a word object by using CreateObject("Word.application"), insert some text in the object, then saveas a "report.doc" file in file text.asp, then use Response.redirect("report.doc") to display the report on the screen. in most of the case, everything is fine, word file is created, the contents is displayed on the screen, the URL is : localhost/test/report.doc. But sometimes, even the report.doc is created, but instead of displaying the word file contents in the screen, the source codes are displayed on the screen, with some strange characters, the URL is still: localhost/test/test.asp, did anybody have the same problem before? why did this happened? Thanks! Andraw
|
|
|
|