Autor Beitrag
Pbg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Win 98
D3 Prof.
BeitragVerfasst: Fr 01.08.03 17:41 
Hallo,

hat jemand einen Tip ??
Ich versuche mit dieser Komponente:

mitglied.lycos.de/AJSchmidt/index.html

Barcode zu drucken, was auch super klappt, (THX an den Programmierer) nur dauert das ewig bis der ein Etikett fertig hat. Ob mein Drucker nur faul ist ?? :o))

Meine Einstellungen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
   Barcode1 := TAsBarcode.Create(self);
   Barcode1.Top := 50;
   Barcode1.Left := 30;
   Barcode1.Modul := 2;
   Barcode1.Ratio := 2.0;
   Barcode1.Height := 50;   
   Barcode1.Angle := 0.0;
   Barcode1.Typ := TBarcodeType(bcCodeEAN13);
   Barcode1.ShowText := TBarcodeOption(bcocode);
   Barcode1.Checksum := true;
   Barcode1.Text := '';
   Barcode1.ShowTextPosition := TShowTextPosition(stpTopLeft);


So drucke ich :

ausblenden Delphi-Quelltext
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:
procedure TForm1.drucken(ean, artikelbez, preis: string);
var
tmpbarcode : TAsBarcode;

begin
    Image1.Picture := nil;
    Barcode1.DrawBarcode(Image1.Canvas);

   tmpbarcode := TAsBarcode.Create(nil);
   try
      with printer do
      begin
         BeginDoc;
         tmpbarcode.Text := ean;
         
       { Height of barcode: 40mm }
         tmpbarcode.Height := ConvertMmToPixelsY(10.0);
        // tmpbarcode.Height := ConvertInchToPixelsY(1.5);
        { Modulwidth: 0.5mm }
         tmpbarcode.Modul  := ConvertMmToPixelsX(0.45); // 0.5
         tmpbarcode.Top    := ConvertMmToPixelsY(7.0); //100.0
         tmpbarcode.Left   := ConvertMmToPixelsX(5.0);  // 35.0
         tmpbarcode.DrawBarcode(Canvas);
         EndDoc;
      end;
   finally
      tmpbarcode.Free;
   end;
end;


MfG

Moderiert von user profile iconAya: Delphi-Tags hinzugefügt.
Tryer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 226
Erhaltene Danke: 7



BeitragVerfasst: Sa 02.08.03 12:30 
Ich hab mir den Quelltext der Komponente mal angeschaut.. wie es aussieht wird grundsätzlich der Winkel der Ausgabe berücksichtigt und dadurch auch beim Winkel 0.0 eine relativ zeitaufwendige Berechnung durchgeführt (Rotate2D() / TranslateQuad2D()..).

Die Berechnung bei Angle=0.0 zu umgehen könnte schon einiges an Performance bringen.

MfG,
Tryer
Pbg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Win 98
D3 Prof.
BeitragVerfasst: Sa 02.08.03 15:08 
Hallo,
Thx,
An der Berechnung kann es glaube ich nicht liegen, weil das Programm
schnell fertig ist. (Daten sind schon in der Warteschlange vom Drucker).
Der braucht für ein Etikett ca 10 Sekunden.

MfG
Nomis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Di 25.05.04 23:12 
Titel: Barcode auf Quickrep ausgeben
Habe auch ein kleines problem mit dem Programm, und zwar möchte ich das Image1 in einem Quickrep darstellen, um es dann auszudrucken
nur leider geht das irgendwie nicht hat da jemand einen Tip für mich


Gruß Simon