1b.app
Link copied -

Barcode printing

Good afternoon. Please tell me how to print an already created barcode for this product in EAN-13 (not numbers, but the picture with stripes) from a product card, while specifying the dimensions of the barcode itself.
Original question is available on version: ru

Answers:

In the Documents application there are price tags /app/document/pricecode/templates/ where you can configure exactly what size and content it will be
Next, send the product to Documents -> Create price tags, there will be settings that will allow you to set the desired size and orientation for printing
15.07.2024, 11:34
Original comment available on version: ru

Thank you. Our stickers are 40x80 mm. But when choosing a size, this is what happens.
15.07.2024, 12:14
Original comment available on version: ru

I replaced the variables with ean13svg, everything is displayed normally, but it does not fit on one page, where can you trim the height of the strips a little?

{full name}

{barcodeimageinternal13svg}
15.07.2024, 12:43
Original comment available on version: ua

Another question about the barcode itself, on the product it is 4820041010747, and on the image with stripes it is completely different.
15.07.2024, 12:50
Original comment available on version: ua

You need to use the barcodeimageexternalean13svg variable - this variable will take the value from the barcode field
on setting dimensions when printing, you can see the discussion in the topic https://1b.app/ru/forum/managing-documents-and-document-templates/18037-srochno-... pechat-ih-na-printere/ there is an example of how you can set the size for printing a price tag
15.07.2024, 13:02
Original comment available on version: ru

Didn't quite understand where to write this code?

<div style="width: 50%; height: 15px; overflow: hidden; margin: 0 auto;">

<img src="/media//productbarcode/product40502internal.png?1654513096" style="width: 100%;">

</div>

Here is my code on the screen.
15.07.2024, 16:03
Original comment available on version: ua

This code change didn't help :(
To change the size of the image, you can add the following code:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
img {
width: 140%;
height: 10%;
align: center;
}
</style>
</head>
at the beginning of the code, replacing your tags with these.
And with the width and height parameters, you change the number of percentages.
15.07.2024, 16:15
Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment