停車場收費(fèi)系統(tǒng)代碼源程序
來源:譽(yù)澄智能 2012/7/2 11:33:08??????點(diǎn)擊:
if Application.MessageBox('操作前請確認(rèn)是否安裝了Excel,如未安裝請取消','提示',MB_OKCANCEL) <> IDOK then Exit;
ExcelApp := CreateOleObject('Excel.Application');
ExcelApp.visible := true;
ExcelApp.Caption := '人事信息導(dǎo)出';
ExcelApp.WorkBooks.Add(1);
ExcelApp.WorkBooks[1].WorkSheets[1].Name := '持卡人信息';
ExcelApp.Cells.Item[1,1] := '持卡人信息';
for row := 0 to lvCard.Items.Count - 1 do
begin
ExcelApp.Cells.Item[row+3, 1] := lvCard.Items[row].Caption;
for col := 0 to lvCard.Columns.Count -2 do
ExcelApp.Cells.Item[row+3, col+2] := lvCard.Items[row].SubItems[col];
end;
for col := 0 to lvCard.Columns.Count -1 do
ExcelApp.Cells.Item[2, col+1] := lvCard.Column[col].Caption;
ExcelApp := CreateOleObject('Excel.Application');
ExcelApp.visible := true;
ExcelApp.Caption := '人事信息導(dǎo)出';
ExcelApp.WorkBooks.Add(1);
ExcelApp.WorkBooks[1].WorkSheets[1].Name := '持卡人信息';
ExcelApp.Cells.Item[1,1] := '持卡人信息';
for row := 0 to lvCard.Items.Count - 1 do
begin
ExcelApp.Cells.Item[row+3, 1] := lvCard.Items[row].Caption;
for col := 0 to lvCard.Columns.Count -2 do
ExcelApp.Cells.Item[row+3, col+2] := lvCard.Items[row].SubItems[col];
end;
for col := 0 to lvCard.Columns.Count -1 do
ExcelApp.Cells.Item[2, col+1] := lvCard.Column[col].Caption;
- 上一篇:停車場收費(fèi)軟件源代碼 2012/7/6
- 下一篇:停車位亂收費(fèi)何以治不了 2012/6/29