Technorati label: ActiveX control, control registration
Copyright Notice: Can be reproduced at will.Hyperlink formMark as followsArticleOriginal Source and author information andThis statement
Author: Xixi
Source: http://blog.csdn.net/slowgrace/archive/2008/12/15/3521857.aspx
1. ActiveX controls must meet the following requirements before use:
- The corresponding ocx file exists on the hard disk;
- And already registered
2. If the preceding two conditions are not met, the following error message may be prompted during use:
- You are not authorized to use the ActiveX control;
- OLE server not registered;
3. Do not worry about these situations. follow these steps:
(1) determine the name of the ocx file corresponding to the control to be used. Try the following method:
- Go to the Internet to find the control name
- Go to the Registry and find the control name or class name.
(2) If the ocx file does not exist on the hard disk, download it online and copy it to the C:/Windows/system32 directory.
(3) register this control. You can choose one of the following three methods (if one method is unavailable, try another method ):
- Import Control registration information vb6controls. Reg
- Enter regsvr32/s msdatgrd. ocx at the command prompt.
- In access, register with tools, ActiveX controls, and
Note that the preceding registration operation requires administrator privileges.
4. See the following example:
- About ActiveX Control registration 1
- About ActiveX Control registration 2
- When the control is not found