Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi Zint - Barcode height property (https://www.delphipraxis.net/162153-zint-barcode-height-property.html)

WojTec 9. Aug 2011 19:21

Zint - Barcode height property
 
There is problem with TZintBarcode

Code:
http://www.delphipraxis.net/143986-%5Bkomponente%5D-barcode-fuer-delphi-zint.html
Barcode haight property is not changable! This is bug in component or in DLL? Zint Barcode Studio don't have this problem, so this can be bug in component. Has somebody valid version?

chaosben 9. Aug 2011 19:41

AW: Zint - Barcode height property
 
I've tried it with the current revision 843 and it works.

Delphi-Quellcode:
procedure TForm11.TrackBar1Change(Sender: TObject);
var
  zb : TZintBarcode;
  bmp : TBitmap;
begin
  Repaint;
  bmp := TBitmap.Create;

  zb := TZintBarcode.Create;
  zb.BarcodeType := tBARCODE_CODE128;
  zb.Height := TrackBar1.Position;
  zb.Data := 'Hallo';
  zb.GetBarcode(bmp);

  Canvas.Draw(10, 10, bmp);
  bmp.Free;
  zb.Free;
end;

WojTec 9. Aug 2011 20:00

Re: Zint - Barcode height property
 
Please try this:

- use component instead directly
- set some 1D // Can change as in your example
- now set some 2D // Can't change
- finally set again some 1D // Still can't change

Also there is problem with border property - if you set barcode that uses it and then change to barcode that don't uses it, property has previous value.

chaosben 9. Aug 2011 20:16

AW: Zint - Barcode height property
 
Ok ... it seems there is a problem. I'll take a look at it.

Kurtow187 9. Aug 2011 20:50

AW: Zint - Barcode height property
 
Hallo,

Ich habe das Problem, dass ich zur Entwurfszeit den Barcode in der Komponente sehe,
aber wenn ich kompiliert habe, bleibt die Komponente weiss.

Wenn ich zintbarCode direkt benutze, bekomme ich gar keine Ausgabe.
(auch nicht mit dem Beispiel von heute)

Ich habe die BPL120 mit DelphiXE (32Bit) kompiliert, und benutze die letzte dll von Zint (871 kb)



Grüße Kurtow187

chaosben 10. Aug 2011 05:20

AW: Zint - Barcode height property
 
@Kurtow187:
Nimm mal bitte die zint.dll aus dem SVN. Die habe ich an unsere Komponente angepasst.

@WojTec:
I haven't found a solution till now. It seems, that it is a bug in zint. But maybe i'll get it in the future. Sorry.

WojTec 10. Aug 2011 10:21

Re: Zint - Barcode height property
 
Ok, I hope Zint will fixed in the future :)

BTW: Why same version 843 from SF is bigger than version from your SVN?

chaosben 10. Aug 2011 10:23

AW: Zint - Barcode height property
 
Because its a special compilation without PNG and some other features, not needed by our component.

Kurtow187 12. Aug 2011 20:03

AW: Zint - Barcode height property
 
Zitat:

@Kurtow187:
Nimm mal bitte die zint.dll aus dem SVN. Die habe ich an unsere Komponente angepasst.
@chaosben
Funktioniert leider auch nicht.

Ich habe jetzt mit der neuen uZintBarcode.pas (Version vom 10 August )compiliert
Jetzt bekomme ich eine Exception EReadError 'Eigenschaft Rotation existiert nicht'

Vielleicht liegts am DelphiXE?


Grüße Kurtow187

chaosben 12. Aug 2011 20:38

AW: Zint - Barcode height property
 
Die Sache mit der Eigenschaft Rotation muss kommen, da ich nen Tippfehler ausgebügelt habe. Aber nur einmal pro verwendete Komponente.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:40 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz