唉,对于这个问题,看来还是我自己回答我自己算了,其实很简单,是这样的<br> for i:=0 to listview8.items.count-1 do<br> begin<br> k:=0;<br> for j:=0 to listview8.Columns.Count-1 do<br> begin<br> if j=0 then<br> begin<br> worksheet.cells[1,1]:='单位编号';<br> worksheet.cells[1,2]:='个人编号';<br> worksheet.cells[1,3]:='身份证编号';<br> worksheet.cells[1,4]:='姓名';<br> worksheet.cells[1,5]:='性别';<br> worksheet.cells[1,6]:='参工日期';<br> worksheet.cells[1,7]:='人员状态';<br> worksheet.cells[i+2,j+1]:=''''+Listview8.items.caption;<br> end<br> else<br> begin<br> worksheet.cells[i+2,j+1]:=''''+Listview8.items.SubItems[k];<br> k:=k+1;<br> end;<br> end;<br> end;