Web Editor Control 6 FAQ[Q] How do the security settings of Internet Explorer affect the program distribution? (OS: Windows)Web Editor Control is a component program using Microsoft's ActiveX protocol. Thus, the security settings of Internet Explorer that affect ActiveX Controls may limit the use of the program. You need to make sure that installation of the program is not blocked by the security settings. In Internet Explorer, select the menu item. The following example is based on Internet Explorer 5.
If the security level is set to 'Default Level', you can install and use Web Editor Control 6 with no problem. If the security level is set to 'Custom', make sure that is set to 'Enable' or 'Prompt'.
Also, make sure that is set to 'Enable'.
[Q] Which script language should I use: PHP, JSP, ASP, or Java Servlet? How does the script language work with databases? (OS: Windows/Unix/Linux; Language: PHP, JSP, ASP)Basically, Web Editor Control runs in the browser (client-side), so which server-side script and type of server are used is insignificant. However there are some differences in how data is processed. Web Editor Control uses MIME to deliver HTML contents and attached files together. It encodes multiple files into a single MIME file, and sends it to the server. The server receives the file and decodes it with a MIME decoder. Depending on the type of server-side script used, there might be differences in the decoding method. For Windows servers, Web Editor Control provides its own COM-based MIME object which encodes and decodes MIME. This library is only for Windows servers with PHP 4 or higher, ASP, Visual C++, or Visual Basic. For Unix/Linux servers, you have to use other libraries for MIME decoding. When saving data into the database, you can use the same method that you use for saving form data. [Q] What is the difference between specifying the settings in the registry and specifying them in the Initialization (.env) File? (OS: Windows/Unix/Linux)Web Editor Control uses an Initialization File to define its settings. However you may find some of these settings are not applied when you use Web Editor Control. This is because settings in the registry have priority over those in the Initialization File. Settings in the registry are specified by the client users, using the menu item of Web Editor Control. [Q] How do I upgrade the Initialization File? (OS: Windows/Unix/Linux)Two parameters should be specified when specifying the Initialization File in the HTML document. One is the location of the file and the other is its version. Web Editor Control refers to the version number to decide whether or not to download the Initialization File. A new Initialization File is downloaded if the version number is higher than before.
[Q] When upgrading Web Editor Control (Namo WebEditor Control) version 2.x to version 5.0, what should I do on the client side for the upgrade? (OS: Windows/Unix/Linux)Some functions of the 2.x version have been modified or removed. Therefore, there might be need for modification of the source code. [Q] Is there an equivalent of namomime.dll for Unix servers? (OS: Unix/Linux)At present, Namo Interactive does not supply a MIME encoder/decoder for UNIX/LINUX. [Q] Can I preserve an unfinished document before navigating to a different Web page? (OS: Windows; Language: VBScript, JScript, VisualC, VisualBasic)Yes. You can use the SaveState and RestoreSate methods to save the current session. These methods allow you to restore a session that was saved within 10 minutes. Refer to the Web Editor Control 6 Developer's Guide for more information. [Q] When using Web Editor Control with script languages, which one is better: VBScript or JScript?Web Editor Control 6 supports the Microsoft COM protocol. Any languages that support the COM protocol can be used. In Internet Explorer you can use either VBScript or JScript. (JavaScript has some difficulties in use.) No significant difference exists between the two methods. JavaScript cannot process Web Editor Control events. JScript can, but it is not the usual way. Except for event handling, VBScript and JScript can be used with equal facility. [Q] Why is the DefaultFont setting in my Initialization File not applied?If a user specifies the default font with the menu item, the settings will be saved in the registry and applied to the program as a default. In this case, the DefaultFont setting in the Initialization File will not apply. To use this setting you have to delete the default font information in the registry. Similarly, font settings specified by the SetDefaultFont method will be superseded by the default font settings in the registry. [Q] When the Initialization File is loaded with the LoadInitFile Method, why is the LineHeight property not applied? (OS: Windows/Unix/Linux; Language: VBScript, JScript)LineHeight is a property of the Document section of the Initialization File. Properties in the Document section cannot be applied to the current document (or any time after the OnInitCompleted message) even if the Initialization File is loaded. The settings will be applied to documents which are created after LoadInitFile is loaded. Refer to the Web Editor Control API documentation for more information on the LoadInitFile method. [Q] Why are settings specified in the Initialization File not applied? (OS: Windows; Web Server: IIS)IIS in Windows 2000 or higher doesn't allow downloading files except for MIME types which are specified in advance. This blocks the downloading of the Initialization File. You need to add the ENV file type in IIS's MIME Map. 1) Open , and double-click . 2) Click under MIME Map. 3) Click . 4) Specify the and as shown above, and click . [Q] I have a Web Editor Control control in a layer (<div> element). If the layer is edited and moved after the web page is loaded, Internet Explorer closes or Web Editor Control is not properly displayed. Why?Several initialization processes for Web Editor Control are done when the web page is loaded. It is encouraged to change any value of the Web Editor Control after initialization is over (after OnInitCompleted). Edit or move the layer on the WEC_OnInitCompleted message rather than on Windows_OnLoad. Refer to the OnInitCompleted API description for more information. [Q] How do I disable some of Web Editor Control's menu commands?Use the DeleteCommand property in the Initialization File. Menus specified in this property are disabled, and are not shown in the menu bar.
In this example, New File, Open File, and Insert Image are disabled. Refer to the Developer's Guide for more information. [Q] I want to make a Windows program using Namo Web Editor Control. What tools can I use?You can use any tools that support ActiveX controls: Visual C++ 6.0, Visual Basic 6.0, and Delphi, to name a few. One thing you should be aware of is that unlike when using Web Editor Control on a Web page, you should have a Design-Time License to include Web Editor Control in a Windows application. Please send e-mail to activex@namo.com for more information. In Windows applications, an LPK file is not required, and the initialization has to be done with the LoadInitFile method. [Q] How do I allow users to use the Open Template feature?opens a pre-designed document template. The Web Editor Control administrator determines whether templates are used. The administrator should take the following actions to enable users to use the Open Template feature.
Using the Lock Cell/Table feature lets users easily recognize the editable and fixed parts of the document template and makes it possible to preserve the basic structure of the document. [Q] How do I create a company document template using the Table Lock or Cell Lock feature?Tables are often inserted in document templates or forms such as an estimate sheet or memorandum. These documents consist of the parts to be filled in and other parts that are not to be modified. In the following table, the first and third columns should not be modified, while the second and fourth columns should be filled in.
In the above case, the feature is very useful because applying the command makes the target cells completely uneditable. To lock the cells, select the cells and select in the shortcut menu.
Also, applying Lock Table prevents users from editing table properties such as table color. If both the Lock Cell and Lock Table commands are applied, two icons appear as shown below.
[Q] How do I upload a Web document and resource files to an FTP server?Web Editor Control provides various methods and properties for you to upload a document along with its resource files (images, style sheets, multimedia files, etc.) to an FTP server. You need to specify the proper settings for uploading files to the FTP server using properties such as FtpFileScope, FtpFileFilter, FtpOverwrite, FtpPort, FtpPassiveMode, FtpUserName, and FtpPassword. Each of the properties is described below.
After setting up the proper environment for the FTP transmission using the properties, you can upload the files using the FtpUpload method.
An example VBScript for uploading files to an FTP server using the properties and methods is shown below.
[Q] Why does the message "Restart Your Computer" appear during Web Editor Control installation?This message appears if you install a newer version of Web Editor Control over an older version. In such cases, locked files belonging to the old Web Editor Control installation cannot be replaced without restarting Windows. [Q] How do I create an HTML dialog box?Web Editor Control 6 provides an HTML dialog box function enabling users to create frequently used dialog boxes with his or her tastes. After creating the html source for a dialog box, specify the directory saved in the path that the user can access the Initialization file of the control. The control value of the dialog box is sent with JScript or VBScript.
Web Editor Control 6 represents each value split by \; (back-slash and semicolon): therefore, the separator should not be used for the attributes (example: 200px\;76%\;). To know the attributes used in the example, refer to MSDN. The following is a list of applicable dialog boxes.
|