Configuring IIS
When a spreadsheet is streamed directly to the client (rather than saved on the web server's
hard disk), an Open or Save dialog box will open in the browser. It is possible to prevent
the display of this dialog box, and open the spreadsheet in the browser window. To do this,
you will need to,
- Associate Excel's xls extension with asp.dll when configuring your virtual
directory:
- Open the Internet Services Manager.
- Right click the virtual directory containing your ExcelWriter scripts,
and select Properties.
- Click Configuration. If the Configuration button is disabled, first click Create.
- Select the App Mappings tab.
- Click Add.
- Browse to select asp.dll, typically in c:\winnt\system32\inetsrv.
- Enter xls in the Extension text box.
- Select "All Verbs."
- Check "Script Engine."
- Do not check "Check that file exists."
- Click Ok.
- Rename your ExcelWriter scripts with the extension .xls. For example, at the DOS command
prompt, enter, "ren xlgen.asp xlgen.xls."
If you associate the xls extension with asp.dll within the settings of a virtual
directory, do not save standard Excel spreadsheets in this directory. If you do, ASP will
attempt to interpret these Excel spreadsheets as ASP script and fail.
Copyright © 2003, SoftArtisans, Inc.