127
st.Add('<td>'+dm1.qDogovor.FieldByName('tarif_tv').AsString);
st.Add('<td>'+dm1.qDogovor.FieldByName('schet').AsString);
dm1.qDogovor.Next;
End;
st.Add('</table>');
dm1.qDogovor.Locate('dogovor_code', metka, []);
st.SaveToFile('report\dogovora.html');
ShellExecute(0, 'open', 'report\dogovora.html', NIL, NIL, SW_SHOW);
st.Free;
End;
//Отчёт Тарифы и услуги
Procedure PrintTarif;
Var
st: TStringList;
i: integer;
metka: variant;
Begin
st:=TStringList.Create;
st.Add('<html>');
st.Add('<head>');
st.Add(' <title>Тарифы на услуги</title>');
st.Add(' <meta http-equiv="Content-Type" content="text/html"; charset="utf-
8" />');
st.Add(' <link href="/style.css" rel="stylesheet" type="text/css" />');
st.Add('</head>');
st.Add('<body>');
st.Add('<h2 align=center>Тарифы на услуги</h2>');
st.Add('<center>'+DateToStr(Now)+'</center>');
st.Add('<h3 align=center>Тарифы на интернет</h3>');
st.Add('<table border=1 cellpadding=3 width=100%>');
st.Add('<tr>');