L
Lord Nicholas Montgomery
I have several web pages who's output I send to Word as well as Excel. This
is easily accomplished using the Response.ContentType="application/msWord"
for word documents or Response.ContentType="application/vnd.excel" for excel
documents. However, The excel no longer works with 2007 at all. instead it
just opens the ASP page in Visual studio.
The problem with Word 2007 is as follows: I have a web page that generates
barcodes from text sent to the page. It creates these barcodes as an IMG and
will display them on the screen when I show it as a web page. In all previous
versions of Office I simply added the line
Response.ContentType="application/msWord" and instead of a web page it would
create a word Doc that could then be printed, saved, etc... his no longer
works. If all that I send are words then there is no apparent problem.
I have been able to create a word doc from a web page where the graphics are
stored on the web server, so at least that part works.
The command that I'm using is similar to the following:
<img src="http://<SERVER
NAME>/extras/barcode.asp?code=CN-02U442-48643-449-1382&height=20&width=1&mode=code39&text=1">
This code is located on one page and barcode.asp is used to generate the
barcode graphic from the text being sent. All that works if I just have the
page display itself but when I add the
Response.ContentType="application/msWord" command (which worked in 2003 and
earlier) it just shows a place holder for where the image would be and I
can't get it to show up.
is easily accomplished using the Response.ContentType="application/msWord"
for word documents or Response.ContentType="application/vnd.excel" for excel
documents. However, The excel no longer works with 2007 at all. instead it
just opens the ASP page in Visual studio.
The problem with Word 2007 is as follows: I have a web page that generates
barcodes from text sent to the page. It creates these barcodes as an IMG and
will display them on the screen when I show it as a web page. In all previous
versions of Office I simply added the line
Response.ContentType="application/msWord" and instead of a web page it would
create a word Doc that could then be printed, saved, etc... his no longer
works. If all that I send are words then there is no apparent problem.
I have been able to create a word doc from a web page where the graphics are
stored on the web server, so at least that part works.
The command that I'm using is similar to the following:
<img src="http://<SERVER
NAME>/extras/barcode.asp?code=CN-02U442-48643-449-1382&height=20&width=1&mode=code39&text=1">
This code is located on one page and barcode.asp is used to generate the
barcode graphic from the text being sent. All that works if I just have the
page display itself but when I add the
Response.ContentType="application/msWord" command (which worked in 2003 and
earlier) it just shows a place holder for where the image would be and I
can't get it to show up.