你这个很简单,使用foxtable可以很方便处理出结果
http://www.foxtable.com/webhelp/scr/0158.htm
http://www.foxtable.com/webhelp/scr/0681.htm