Hi all.
I am printing a list of tracking numbers to a receipt printer.
It should alternate by first printing the Tracking number in text and then below it the tracking number in barcode.
It uses a simple Code39 barcode since the Barcode type is not important.
I am again missing something simple.
I am printing all over everything. Perhaps the smart people here can see where i went wrong?
var
i: Integer;
datum,myprinter,presult,modstring:string;
sett:Tinifile;
begin
Sett := TINIFile.Create('Settings.ini');
presult:=Sett.ReadString('Main', 'RCPTPrinter', myprinter);
Printer.SetPrinter(Presult);
datum:= datetostr(Date);
Printer.BeginDoc;
Printer.canvas.font.name:='Calibri';
printer.canvas.Font.Size:=21;
printer.canvas.textout(10,1,'1st/2nd NOTICES');
printer.canvas.Font.Size:=17;
printer.canvas.textout(10,60,Datum);
try
for i := 0 to ListBox.Items.Count - 1 do
begin
Printer.canvas.font.name:='Calibri';
printer.canvas.Font.Size:=17;
Printer.Canvas.TextOut(10, 150 + (i * 50), ListBox.Items[i]);
Printer.canvas.font.name:='Bar-Code 39';
printer.canvas.Font.Size:=17;
modstring :='*'+listbox.Items[1]+'*';
Printer.Canvas.TextOut(10, 200 + (i * 50), modstring);
end;
finally
Printer.EndDoc;
end;
Your help is always greatly appreciated.
-Peter