摘要:直接用VC++程序實現圖表功能需要編制大量的代碼,而Excel具有完整的圖表處理功能。因此本文介紹了在VC++環境中調用Microsoft Excel,向Excel傳輸數據,實現自動繪制表格的方法。文中給出了源代碼和在實際檢測系統中的應用,該系統滿足用戶的需求,提高用戶的工作效率,同時也極大地減少了代碼編寫的工作量。
關鍵詞:VC++2005,Excel,檢測系統,表格
VC++ Using Excel Drawing Table In The Application Of Detection System
Zhang Guihao1,Shi Chengying1, Sun Yinchao1
1. The Second Artillery Engineering college,Xi’an 710025,China
Abstract:Realizing the chart features used by VC++ program directly required a lot of code, Excel had a complete function of handling chart and table.This article describes using Microsoft Excel in the VC++ environment, transferring data to Excel and realizing drawing table automaticly.The paper gives the source code and application in detection system, the system not only meets the needs of users and improves users’ productivity, but also greatly reduces the workload of writing code.
Key Words: VC++2005,Excel ,Detection System ,Form
作者簡介:
張桂豪,男,重慶沙坪壩,(1986-),碩士研究生,研究方向:檢測技術與自動化。