[ASP] Ntko Plugin Usage FAQs

Source: Internet
Author: User

I. Environmental Requirements

The Ntko Office document control is able to directly edit documents such as MS Office, WPS, Kingsoft, and permanent office in IE, Google Chrome, Firefox and other browsers, and save them to the Web server. (Standard version of IE browser compatibility is verified, other browsers are not verified)

Use Ntkooffice, for example, in MS Office, you need to install the full version of Office.

Notes : A document control is an ActiveX control that operates on a local office through a browser, so that the permissions of the system user must Administrator status, This allows the control to load properly, and there is a document control in the system that must be added to IE's Trusted Sites to go in;

Join a trusted site IE Toolbar-internet options

This protection mode is not enabled;

This HTTPS authentication is canceled, and then click Add on the line;

If you are using a document control, a failure occurs when you save an Office document and an attachment in a form;

Check it out. IE security setting, "Upload file to server with local directory path" enabled

two , Common Errors 2. 1 Problem: Popup "Object not supported" prompt

Workaround : You need to allow add-ons for the first run and then reopen the printed page after refreshing.

2.2Questions:Ntko Office Document controls cannot be loaded automatically

Cause Analysis: Controls cannot be loaded automatically mainly due to the following causes

1) security settings in the Local Internet option prohibit the download of signed ActiveX controls in the current zone;

2) The CodeBase property in the <object tag is specified incorrectly in the page that references the control, causing the browser to not download the Officecontrol.cab file;

3) The Officecontrol.cab on the server is destroyed, the correct signature is lost, or an incorrect version is used;

4) Although the Officecontrol.cab on the server is correct, there is a problem with the browser download. This may be caused by the incorrect configuration of some Web server's mime, causing the server to send Officecontrol.cab to the browser in the form of a binary file;

5) security settings in the Local Internet option that do not allow ActiveX controls and plugins to be run in the current zone;

6) may also be caused by Microsoft's patch, or other anti-virus software or filtering software to prevent the installation of the control;

Workaround:

1) Confirm the security settings in the local Internet Options, allow download of signed ActiveX controls, and allow ActiveX controls and plug-ins to run.

2) Confirm that the codebase= portion of the <object tag in the Web page that references the control correctly points to the url[of the Officecontrol.cab file on the server relative to the current Web page or the relative server root].

3) from the browser address bar directly enter the URL of the Officecontrol.cab file on the server, including the host name, confirm that the browser appears download prompt and after downloading the saved Officecontrol.cab file, right-click on the Properties, in the dialog box appears with " Digital signature, and the signature is correct.

4) If the above method does not solve the problem, and your system installs the "Microsoft Cumulative security update ms05-052 patch", please try the following steps:

Warning: If you modify the registry incorrectly by using Registry Editor or other methods, you may cause serious problems. These issues may require you to reinstall your operating system to resolve.
1. Click Start, click Run, type Regedit.exe, and then click OK.
2. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility
3. Right-click on "ActiveX Compatibility" to find the Ntko Office document Control clsid:{c9bc4dff-4248-4a3c-8a49-63a7d317f404}, if the item exists, right-click on the " Compatibility the Flags project, and then click Modify. In the Value data box, select 16 Binary, enter 00800000, and then click OK.
4. If the CLSID for the Ntko Office document control does not exist, right-click ActiveX compatibility, point to New, click Key, type clsid:{for the Ntko Office document control c9bc4dff-4248-4a3c-8a49-63a7d317f404}, and then press Enter.
5. Right-click the item that you created in step 4, point to New, and then click DWORD Value.
6. Type compatibility Flags, and then press Enter.
7. Right-click on "Compatibility Flags" and click "Modify".
8. In the Value data box, select 16, enter 00800000, and then click OK.
9. Quit Registry Editor.
5) If the above method does not resolve the problem, try to temporarily turn off the antivirus software or other filtering software before installing.

6) If the problem is still not resolved, the machine configuration may be damaged, you can try to install manually. Please refer to the relevant documentation for details.

2.3Problem: Occurs when loading a documentDownload document data Failed dialog box

Workaround:

the error is due to a background URL data error. You can try to open the URL from the browser, if it is a background error, you can see the detailed error message. If the browser can be opened and the control cannot be opened, you can try setting the control properties <param name= "Isuseutf8url" value= "1" >

2.4   problem : "You did not install Office correctly or requested to create an OLE document type that is not supported by the system" error when loading a document  

Workaround:

This error is because the interface is not registered. Has nothing to do with the control itself. You can try 1, open the Windows WordPad application, and choose to insert the Word document object. If this error occurs, you can be sure that the Office installation is a problem, or because Ole32.dll is not registered. 2, you can try to run "Regsvr32.dll" at the command line, and then try again. 3, if not, you can completely uninstall office, reinstall.

2.5   problem : Why a control sometimes loads a document that is blank and sometimes load normally

This may be a direct call to Openfromurl/beginopenfromurl in the body, but at this point the control is not fully initialized /loaded, so there is a blank. Workaround: You can invoke the JS function in the <body onload= "..." > to make sure that after the browser loads the control, the Openfromurl/beginopenfromurl is called in the JS function. So that it can be solved.

2.6   problem : File access error

Workaround:

First, according to the note Operation , the system is added to the trusted site of IE, if you join a trusted site or file access errors that is the problem of the local office, the native Office is a lite version of Office, uninstalled the machine and then reinstall a full Office;

1. Environmental issues, follow these steps to check

1. Try inserting the Word object in WordPad, if you don't give an error, the office is installed correctly

2) Open the command line and enter regsvr32 ole32.dll (Win7 need to open this: All program attachment command line # Mouse right-click to execute as Administrator)

3) if 1) 2) No problem, you can open Task Manager to see if there is an unfinished WINWORD.EXE EXCEL. EXE process, close try

4) Delete Normal.dot Normal.dotx try, these two files are template files for office, in directory C:\Documents and Settings\ current user \application Data\microsoft\ Templates under

5) Windows7 can also try to put OA or the system's IP into the trust site, cancel the protection mode try

6) If none of the above methods are possible, please reinstall the Office test (recommended for full installation)

only part of the document open times wrong

2. The document is damaged

1) For unknown reasons, the document is damaged, you can open the document from the local, save a copy to try to open the control

2.7   problem : File Transfer error occurs when you use a document control to open a document above a server

Workaround:

The control object . Openfromurl (URL); The parameter URL must be able to return the binary data stream of the standard document. It can point directly to a Word document or page on the server (this page reads the data stream of the document and returns it to the client).
There are several scenarios in which errors occur:
1:url error. If the URL is not the problem in the browser's address bar directly enter the URL corresponding to the full URL should be able to download the Word document. If there is a problem with the URL, the control cannot get the document data and will prompt for "file transfer error."
2: Coding problem. For example, in the URL with Chinese characters, the browser URL encoding to the URL is corrupted. The server will certainly not be able to return the correct word binary stream based on the URL being compromised. You can encode the URL by setting the isuseutf8url=-1 of the control (that is, using UTF8). Sometimes even setting up isuseutf8url=-1 does not solve the problem. Based on experience, you can call Url=escape (URL), re-encode the URL once, and then call Openfromurl (URL).
3: The server settings themselves do not support Chinese URLs. For example, the Tomcat server, the server configuration file can be set URL encoding, and some encoding format is not supported in Chinese. In this case, you need to reset the URL encoding format that supports Chinese.

Save document back to Server times "file transfer Error"
The return value of the Savetourl () method is the content of the entire page when the URL points to the end of the page. If the background URL program has an error, the save is unsuccessful. The control will prompt for "file transfer Error" and the return value of the Savetourl () method contains an error message. You can view the error message and debug the URL page by using code similar to the following:
var resttml = control object. Savetourl (URL,..);
alert (resttml);

2.8 questions: the control uses a period of time after a sudden prompt "The Ntko Office document control that you are running is a demo version that has expired and cannot continue to be used." (. NET version)

Workaround:

3 files copied to the standard version of the deployment package, overwriting the files under the corresponding path for the project group.

2.9    problem : There's nothing wrong with testing anywhere else. when the document is saved appear not known error

Workaround:

This can be caused by opening a document Openfromurl The second argument or beginopenfromurl the third read-only property to true so that the document cannot be saved back to the server , so the solution is to set this parameter to False to resolve;

2.10 Problem: When the client Office version contains 2003, 2007, and 2010, how to handle compatibility issues when saving documents

Workaround:

because a low version of Office cannot be compatible with a high-version Office document format (such as office2003 cannot open 07 and 10 documents), it is recommended that you use the Saveasotherformattourl method when you save the document. This method is used to save the document to a specified URL in a file in a different format. In addition to the first argument, the format of the other parameters and the return value are consistent with the parameters of the Savetourl method.

The first parameter indicates the type of file to save:

For a Word document, the first parameter has the following meanings:

0: Save as Word txt format;

1: Save as MHT format. Requires the client to install OFFICE XP and the above version;

2: Save as XML format. Requires client to install Office 2003 and above;

3: Save as RTF format;

4: Save as UnicodeText format;

5: Save as a compatible Word document format;

For an Excel document, the first parameter has the following meanings:

0: Save to TXT format;

1: Save as MHT format. Requires the client to install OFFICE XP and the above version;

2: Save as XML format. Requires client to install Office 2003 and above;

3: Save to CSV format;

4: Save as UnicodeText format;

5: Save as EXCEL7 format;

7: Save as EXCEL95 format;

For a PowerPoint document, the first parameter has the following meanings:

0: Save to GIF format;

1: Save as MHT format. Requires the client to install OFFICE XP and the above version;

2: Save to jpg format.

3: Save as RTF format;

4: Save to PNG format;

three , other 3.1 Problem: Page resolution issues

Large screen display may have a problem with the page display is not beautiful

Workaround: A project group that needs to use a large screen display can personalize the page.

3.2 questions: accidental deletion of attachments

If the license has been opened and the editor has been saved, an attachment instance will be generated under the corresponding folder in the framework directory, and if the instance is accidentally deleted, the error in Figure 2 will appear .

Epointframe\bigfileuploadstorage\2017\1\epointframe

Figure 1:

Figure 2:

3.3 questions: Browser compatibility issues

The Standard Edition has been validated for compatibility with IE and 360 browsers:

compatible IE not compatible

on the official website propaganda Google Chrome, Firefox browser is not validated.

[ASP] Ntko Plugin Usage FAQs

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.