Está en la página 1de 1

procedure TForm1.

Button3Click(Sender: TObject);
const
xUF =
'AC,AL,AP,AM,BA,CE,DF,ES,GO,MA,MT,MS,MG,PA,PB,PR,PE,PI,RJ,RN,RS,RO,RR,SC,SP,SE,TO';
cUF =
'12,27,16,13,29,23,53,32,52,21,51,50,31,15,25,41,26,22,33,24,43,11,14,42,35,28,17';
var
i : integer;
begin
InfoDFe.DistribuicaoDFePorChaveNFe(StrToInt(copy(cUF,
pos(dmInfoNFe.fbFiliais.FieldByName('uf').AsString, xUF), 2)),
lookCNPJ.Text, edChassi.Text);
for i := 0 to InfoDFe.WebServices.DistribuicaoDFe.retDistDFeInt.docZip.Count - 1
do
begin

memo1.Lines.Add(InfoDFe.WebServices.DistribuicaoDFe.retDistDFeInt.docZip.Items[i].X
ML);
end;
end;

También podría gustarte