Use ASP and Word for server-side spell checking
The issues discussed in this article are related to the following:
Microsoft Word for Windows
Microsoft Visual InterDev, version 6.0
Microsoft Internet Information Server version 4.0
Profile
This article describes how to use Microsoft Word to add a spelling checker to a Web page ASP file.
Detailed steps
Follow these steps to build an ASP application:
1, on the Web server's machine, start Microsoft Visual InterDev 6.0, select File/new Project.
2, in the "New Project" dialog box name editing field, enter "Webspell", and then double-click the new Web Project icon.
3. In the following Web Project Wizard dialog box, enter or select your Web server name. Default working mode to master, click Next, and then click
"Finish".
4, after the creation of Visual InterDev project completed, open the Project menu, select "Add Web itemhtml page", named "CheckSpelling",
then click Open.
5, the added HTML page is opened in Design view by default. Drag an HTML text area on the page and place an HTML submit button, depending on your hobby
Make a layout, enter some text on the page, and tell the user to enter the text field that you want to check for spelling.
6, select all objects on the page (Ctrl + a), and then select form from the Visual InterDev HTML menu to wrap the object in the form.
7, click the Current window at the bottom of the Source function page, switch to the source display view. Modify the HTML open < FORM > tag's Action property value to
Results.asp.
8. Open the Project menu, select "Add Web itemactive Server Page", name "Results", and click "Open".
9. For new pages, switch to Source view, and enter the following code between <BODY> tags:
<!--Page header-->
<p><center><font size=+4 color=red>spelling results</font></center><!--show user the text they entered-->
<p>the text you entered was:<p>
<font color=blue><%=request ("TEXTAREA1")%></font><p><!--Begin server-side script to check spelling errors-->
<%
' Don ' t allow sessions to re-enter
Do While (Application ("wordinuse") = 1)
Loop
Application ("Wordinuse") = 1
' Get Word references created in Global.asa.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.