XSL i kod kreskowy

Odpowiedz Nowy wątek
2020-02-13 12:06

Rejestracja: 17 lat temu

Ostatnio: 3 godziny temu

0

Witam,
Korzystam z aplikacji, który do wyświetlania pewnych informacji używa XML oraz stylu XSL. Zaszła potrzeba, aby na tym widoku tworzył się również kod kreskowy. Znalazłem coś takiego:
http://www.renderx.com/~renderx/Demos/barcode/index.html Niestety nie mogę zastosować funkcji import, gdyż pliki xml i xsl są zapisane binarnie w bazie danych. Kiedy dograłem po prostu zawartość pliku do istniejącego i zapisałem całość, to niestety widok nie działa. Hmmmm. Czy ktoś mógłby mi pomóc w tej kwestii?


Pozdrawiam
Buster
edytowany 1x, ostatnio: Buster, 2020-02-13 12:06

Pozostało 580 znaków

2020-02-13 21:05

Rejestracja: 17 lat temu

Ostatnio: 58 minut temu

0

Ale ty to pokazujesz jako html?

Bo jeżeli tak, to dużo prościej jest pobrać czcionke np: https://github.com/graphicore/librebarcode
osadzić w css i wygenerować takiego htmla:

<html>

<head>
    <style>
        @font-face {
            font-family: 'libre_barcode_128regular';
            src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAlgABAAAAAAQAAAAAkBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACDEggYCYRlEQgK4hzSRguCCgABNgIkA4QQBCAFhXQHg1QMgT4bBjazAzFsHECWIe9IhHkaXIf8H48bQwQLNK3vJKdQRVV1GlkK7KLMpRmqhGBquqGbSnjtTT+yoy9hHJoDFQuN9Omkf3ivFvKFxXdlXs6WHEXShdl8tWT+RN4X1Pdjuvf/SwlZs6zveJCMEm2qyFdXuLAskHC1kZ1crW1/5hOuh7+zt4hqiSYl0RI1c7imV3StrMYRyhJh8s+BoTETckJNA0qg33Sv7z4H0a30nAv7guww34V5KvCW1MVpqfTslidcEbWXp2xJ61TFMMA2SqN22nX0/NfNDaUfMWK3e9bAEgkCwohLgAH+/BctVP5vFFJg2wuKowh6WUMKbAO6E767d2B/CbIB3rD/4+ATFxPAr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SfFf9oQBIdIwURNX4y9n6ySTj85ea/VjrqVl2baTMZXCacdK5oVZmfaCqu1sUbBFP2mPs0y2UVGpV2l88vKe5murScN8GYeeL5ccuiLWjmykFLQtzay0gjlen8R1HM/hWpgnF9WV8PM8CGEGJ7ZKWmMkG6Tl3jnxilTpTQd62NZxrJAjMXIo/iMr3wsgJ4//B72/SAaZZJFNDrnkkU8BJxc3Dy8fv4CgkLCIqJg4JiEpJS0jK0ciU6g0OkMe4khBUUlZRVVNXUNTS1tHV1RMXEJSSlpGVk5eQVFJWUVVTV1DU0tbR1dP38DQyNjENFEBQu7Mmbux4NvShy//fvxmVboylKksZStHucpTvgpYIStixfBzs1hWysp8S6dLDZ34Ny/4OB+Hl0LvWBP9NKoBhyhQpESZClVqvhc4Lm76d6uzmFK0pHwazxL16zp+3/8MsSvQSYE+aTN2VdktPkPqFKk6KXbAPRfUUQq7mZCMGDaT22giFzY/AHb+vzFsd8uxQd3G5dGdZzvulO/hTWI8rlLxRW+C+o3P1SmB6I+SoAwB18yrKNYA) format('woff2'),
                url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAA18ABAAAAAAQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABbAAAABwAAAAchiRfF0dERUYAAAGIAAAAHAAAAB4AJwCKT1MvMgAAAaQAAABDAAAAYF57fipjbWFwAAAB6AAAAO4AAAGSH07DWmN2dCAAAALYAAAAGAAAABgCqAcuZnBnbQAAAvAAAAGxAAACZVO0L6dnYXNwAAAEpAAAAAgAAAAIAAAAEGdseWYAAASsAAAEEAAAMRyiZA2FaGVhZAAACLwAAAAyAAAANhdpY2poaGVhAAAI8AAAACAAAAAkDNAFo2htdHgAAAkQAAAAPwAAAhBVygBEbG9jYQAACVAAAADmAAABCo4NgdBtYXhwAAAKOAAAACAAAAAgAaAAY25hbWUAAApYAAABcAAAAvQf/WnAcG9zdAAAC8gAAAEpAAAB1CfaL7lwcmVwAAAM9AAAAIYAAAC+wy458AAAAA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sqHeLX1BRnxa/wi0sWfxGvGrwh4PFQg0tJEhxhyEihOhjBA8BKvCxTXRKS4/3Ab0dxmjcxAVRl3mXwo/IElwTdyV7F2PefdqGyMhLiJmRcfWwwxpDspT+SDS0ZlmUVn6t4rOrGo6JQ+rH4vWZWeEK0MA+fS3uxg+VSQ2jsDal8XdNbyrjjExPFjFuIFHfXXicfIQrxuk3SGTKgbxKCbcSuTUx53867ItmijrWuTJG679Kacuop/uIeeuXDOk/RJv651TosI/EVjc96t8ck7XFq60bclapvcm7zvqB/X+9dU9mllg6MHP3yDNq5NonuKElok9PFH8BFZdx13jabcxHTkJxFMXh30UEpAoC9t77ewgIdkSx994bKCTGGI0D5y7AlTjQRWgscUUmGt5/6Jl8OfcmBxP5/GQ55788gJikgALMFGLBio0i7Dhw4sKNh2K8+CjBT4AgpZRRTgWVVFFNDbXUUU8DjTTRTAuttNFOB5100U0PvWjohOgjTIQo/cSIM8AgQwwzwihjJBgnyQSTpJhimhlmmWOeBRZZYpkVVlljnQ022WKbHXbZY58DDjnimBMxSyGvPHHKGY+k+SDDG+9888mXWMQqNikSuzjEKS5xi0eKxSs+KeGZF/FLQIKWi8v766xuvbvKaZo2YZjQlPke+nsodWVI2acMKyPKqLJfGVPGlQlDXe3quv08d3F3k0mf3GaNUyhlGDGMpJK/lFNOqgAAAHja28H4v3UDYy+D9waOgIiNjIx9kRvd2LQjFDcIRHpvEAkCMhoiZTewacdEMG5gVHDdwKztsoFJwXUXA2P9fwYm7Y3MbmVAEWaQCBOLIkKERcF1E7MSnMsKUsDCZIZQwAZUwCoO57KDFLAxeSMUcAAVsAvCuZwgBRxMCXAFkRtEtAG2HjP1AAA=) format('woff');
            font-weight: normal;
            font-style: normal;

        }
        .barcode {
            font-family: 'libre_barcode_128regular'

        }
    </style>
</head>
<body>
    <p class="barcode">1 234 567</p>
</body>
</html>

Wredy masz ładnie wyświetlony kod kreskowy

Pozostało 580 znaków

2020-02-14 09:38

Rejestracja: 17 lat temu

Ostatnio: 3 godziny temu

0

Fajne rozwiązanie, ale ja potrzebuję EAN-13 w większości. Czasami zdarza się EAN-8.


Pozdrawiam
Buster

Pozostało 580 znaków

2020-02-14 10:13

Rejestracja: 17 lat temu

Ostatnio: 58 minut temu

1

No to znajdź font z ean 13/ean8 i osadź w dokumencie lub wykorzystaj: skrypt: JsBarcode.ean-upc.min.js ze strony https://lindell.me/JsBarcode/#download i go osadź:

<html>

<head>
    <script src="data:text/javascript;base64,LyohIEpzQmFyY29kZSB2My42LjAgfCAoYykgSm9oYW4gTGluZGVsbCB8IE1JVCBsaWNlbnNlICovCiFmdW5jdGlvbih0KXtmdW5jdGlvbiBlKHIpe2lmKG5bcl0pcmV0dXJuIG5bcl0uZXhwb3J0czt2YXIgaT1uW3JdPXtpOnIsbDohMSxleHBvcnRzOnt9fTtyZXR1cm4gdFtyXS5jYWxsKGkuZXhwb3J0cyxpLGkuZXhwb3J0cyxlKSxpLmw9ITAsaS5leHBvcnRzfXZhciBuPXt9O3JldHVybiBlLm09dCxlLmM9bixlLmk9ZnVuY3Rpb24odCl7cmV0dXJuIHR9LGUuZD1mdW5jdGlvbih0LGUsbil7T2JqZWN0LmRlZmluZVByb3BlcnR5KHQsZSx7Y29uZmlndXJhYmxlOiExLGVudW1lcmFibGU6ITAsZ2V0Om59KX0sZS5uPWZ1bmN0aW9uKHQpe3ZhciBuPXQmJnQuX19lc01vZHVsZT9mdW5jdGlvbigpe3JldHVybiB0WyJkZWZhdWx0Il19OmZ1bmN0aW9uKCl7cmV0dXJuIHR9O3JldHVybiBlLmQobiwiYSIsbiksbn0sZS5vPWZ1bmN0aW9uKHQsZSl7cmV0dXJuIE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbCh0LGUpfSxlLnA9IiIsZShlLnM9MjMpfShbZnVuY3Rpb24odCxlKXsidXNlIHN0cmljdCI7ZnVuY3Rpb24gbih0LGUpe2lmKCEodCBpbnN0YW5jZW9mIGUpKXRocm93IG5ldyBUeXB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PW8oZSxyLG4pO3ModCxpLG4pfSl9fX0sTy5wcm90b3R5cGUucmVuZGVyPWZ1bmN0aW9uKCl7aWYoIXRoaXMuX3JlbmRlclByb3BlcnRpZXMpdGhyb3cgbmV3IHguTm9FbGVtZW50RXhjZXB0aW9uO2lmKEFycmF5LmlzQXJyYXkodGhpcy5fcmVuZGVyUHJvcGVydGllcykpZm9yKHZhciB0PTA7dDx0aGlzLl9yZW5kZXJQcm9wZXJ0aWVzLmxlbmd0aDt0Kyspcyh0aGlzLl9yZW5kZXJQcm9wZXJ0aWVzW3RdLHRoaXMuX2VuY29kaW5ncyx0aGlzLl9vcHRpb25zKTtlbHNlIHModGhpcy5fcmVuZGVyUHJvcGVydGllcyx0aGlzLl9lbmNvZGluZ3MsdGhpcy5fb3B0aW9ucyk7cmV0dXJuIHRoaXN9LE8ucHJvdG90eXBlLl9kZWZhdWx0cz1FWyJkZWZhdWx0Il0sInVuZGVmaW5lZCIhPXR5cGVvZiB3aW5kb3cmJih3aW5kb3cuSnNCYXJjb2RlPUEpLCJ1bmRlZmluZWQiIT10eXBlb2YgalF1ZXJ5JiYoalF1ZXJ5LmZuLkpzQmFyY29kZT1mdW5jdGlvbih0LGUpe3ZhciBuPVtdO3JldHVybiBqUXVlcnkodGhpcykuZWFjaChmdW5jdGlvbigpe24ucHVzaCh0aGlzKX0pLEEobix0LGUpfSksdC5leHBvcnRzPUF9XSk7"></script> 
</head>
<body>

    <svg class="barcode"
  jsbarcode-format="EAN13"
  jsbarcode-value="7501031311309"
  jsbarcode-textmargin="0"
  jsbarcode-fontoptions="bold">
</svg>
    <svg class="barcode"
  jsbarcode-format="EAN8"
  jsbarcode-value="4012345"
  jsbarcode-textmargin="0"
  jsbarcode-fontoptions="bold">
</svg>
<script>
JsBarcode(".barcode").init();
</script>
</body>
</html>

Pozostało 580 znaków

2020-02-14 16:41

Rejestracja: 17 lat temu

Ostatnio: 3 godziny temu

0

O. To jest fajne. Tylko jeszcze drobna podpowiedź i będzie super. Generalnie działa. Jednak moduł wyświetlania w tym oprogramowaniu oparty jest o Internet Explorer (niestety). Kiedy testuję to rozwiązanie jako plik html i uruchamiam go w IE, to na dole pojawia mi się głupi komunikat, że Program Internet Explorer ograniczył tej witrynie uruchamianie skryptów i kontrolek ActiveX i jest przycisk Zezwalaj na zablokowaną zawartość. Po kliknięciu wszytko ładnie się pojawia. No cóż, w aplikacji tego komunikatu nie mam, przez co , kody się nie wyświetlają. Jak zmusić IE, do uruchomienia tego JS-a, bez głupich komentarzy?


Pozdrawiam
Buster

Pozostało 580 znaków

2020-02-14 16:49

Rejestracja: 17 lat temu

Ostatnio: 58 minut temu

0

Dodaj na początku pliku:

<!-- saved from url=(0014)about:internet -->

Pozostało 580 znaków

Odpowiedz

1 użytkowników online, w tym zalogowanych: 0, gości: 1, botów: 0