vc2008生成EXCEL柱状图voidCOdbcExcelDlg::WriteToExcel(){CDatabasedatabase;CStringsDriver="MICROSOFTEXCELDRIVER(*.XLS)";//Excel安装驱动CStringsExcelFile="c:\\demo.xls";//要建立的Excel文件CStringsSql;TRY{//创建进行存取的字符串sSql.Format("DRIVER={%s};DSN='';FIRSTROWHASNAMES=1;READONLY=FAL