In order to handle the print problem in Java application,a novel method with Java native interface(JNI) and component object model(COM) technology to manipulate Excel in Java and its implementation are presented.In Java application,the communication between JNI and COM,is put into effect through calling COM objects in Excel to complete the Excel manipulation.Further more,each COM object is mapped into Java object and the self designed pure-java API is called to implement complex reports form in Java application.The motivation and functions of the presented system are described,and the system architecture is provided.The implementation of Java with VC code is also discussed.