1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| for i := 0 to numart - 1 do
begin
application.ProcessMessages;
codice := qrystamp.Fields[0].AsString;
if ling = 'Italiano' then
begin
ekrtf1.OutFile := dirstec + '\Temp\Italiano\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.doc';
pdftempout := dirstec + '\Temp\Italiano\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.pdf';
application.ProcessMessages;
prelim;
application.ProcessMessages;
end
else if ling = 'Inglese' then
begin
ekrtf1.OutFile := dirstec + '\Temp\Inglese\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.doc';
pdftempout := dirstec + '\Temp\Inglese\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.pdf';
application.ProcessMessages;
prelimENG;
application.ProcessMessages;
end
else if ling = 'Francese' then
begin
ekrtf1.OutFile := dirstec + '\Temp\Francese\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.doc';
pdftempout := dirstec + '\Temp\Francese\' + ansirightstr(codice,4) + '_' + mskTot.Text + '.pdf';
application.ProcessMessages;
prelimENG;
application.ProcessMessages;
end;
//pour generer le PDF
if chkPDF.Checked = true then
begin
SetPDFReg (0);
period := true;
ekrtf1.Execute([Qryvalnutr,Qrychim,qrymicro,qrycompo,qrycompo1,qryorgan,qrydim,
qrycons,qrynote,qryconf,qryimgACCEP,qryimgRIGEP,qryimgBERSP,qryimgACCEK,qryimgRIGEK,qryimgBERSK,qrypack1,
qrypack2,qrypack3,qrypack4,qrypack5,qrypack6]);
period := false;
end;
if (rdSstand.Checked = true) and (chkPDF.Checked = false) then
begin
ekrtf1.Execute([Qryvalnutr,Qrychim,qrymicro,qrycompo,qrycompo1,qryorgan,qrydim,
qrycons,qrynote,qryconf,qryimgACCEP,qryimgRIGEP,qryimgBERSP,qryimgACCEK,qryimgRIGEK,qryimgBERSK,qrypack1,
qrypack2,qrypack3,qrypack4,qrypack5,qrypack6]);
end;
ekrtf1.VarList.Clear;
scprog.Position := scprog.Position + 1;
application.ProcessMessages;
if mgannuler = true then
begin
toolbutton10.Enabled := false;
label8.Visible := false;
break;
end;
qrystamp.Next;
end; |
Partager