Running the Solution

[Previous] [Next]

This solution is a mixture of HTML and Microsoft Active Server Pages. To run this solution, you must open the Default.htm page using an http:// URL, meaning that you cannot simply double-click the files on the companion CD. The easiest way to set up the solution is to follow these steps:

  1. If you are using a Microsoft Windows NT Server machine with Microsoft Internet Information Server, use the IIS manager to add a virtual directory to your root web. Copy the Chap07 and Scripts directories on the CD to the machine's hard drive, and specify those directories as the sources for peer virtual directories. Make sure to enable scripting support.
  2. If you are running Personal Web Server (say on Windows 98 or Windows NT Workstation), use the Personal Web Manager to add a virtual directory as described in Step 1, but make sure that you select the Execute option in the Access section of the Add Directory dialog box.
  3. Type the URL for the directory into your browser—for example, http://MyServer/Chap07. The Default.htm page should load unless you have configured your web site to use another default filename. If you have, just add /Default.htm to the end of the URL.

For tips on how to create virtual directories for ASP applications using Personal Web Server, see the sidebar "Adding Virtual Directories Using Personal Web Server" in Chapter 6.

Note that the ASP page in this solution will use the LOGON_USER server variable for the current user name when saving reports. By default, IIS leaves the Allow Anonymous Access authentication method on, which means that LOGON_USER will return a blank string. If you want to enable the solution to save reports based on actual user names, disable anonymous access by editing the security settings of the virtual directory that contains the ASP page.



Programming Microsoft Office 2000 Web Components
Programming Microsoft Office 2000 Web Components (Microsoft Progamming Series)
ISBN: 073560794X
EAN: 2147483647
Year: 1999
Pages: 111
Authors: Dave Stearns

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net