100
XL.Visible[lcid] := True;
FreeAndNil(XL);
end;
{ CountNomZastrah:= StrToInt(GetNastrParametr('NomZastrah'));
inc(CountNomZastrah);
decodedate(now(), year, month, day);
s:=
'\Arhiv\СписЗастрахСотр_'+inttostr(day)+'_'+inttostr(month)+'_'+inttostr(year)+'_'+IntToStr(Coun
tNomZastrah)+'.xls';
s:= ExtractFileDir(application.ExeName) + s;
xl.Workbooks[1].SaveAs(OleVariant(s), EmptyParam, EmptyParam, EmptyParam,
false, false, xlNoChange, EmptyParam,
EmptyParam, EmptyParam, EmptyParam, lcid);
xl.ActiveWorkbook.SaveAs(OleVariant(s), EmptyParam, EmptyParam, EmptyParam,
false, false, EmptyParam, false,
EmptyParam, EmptyParam, EmptyParam, lcid);
SetNastrParametr(IntToStr(CountNomZastrah),'NomZastrah');
}
end;
procedure TFormMain.FormShow(Sender: TObject);
begin
if TekARM=Sekretar
then begin
N1.Enabled:=false;
N8.Enabled:=false;
N7.Visible:=false;