In the modern society, the paperless office has been applied to many medical fields. To reduce the cost of administration ,improve the efficiency of hospital, a kind of paperless system has been designed and implemented. A part of the system has been used for designing the report in keep with the design theme. The part is designed as an OCX to bring about the function, which makes the doctor could depend on the paper report rapidly define the various report style.
This paper introduces how to programming the function module with the ActiveX technology to make the OCX decoding the encapsulation of the way. This program was coded with language C and C++, and defined a style of xml to strore the file. End it used C#.Net to make a demo in case show the function of the OCX.