Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
Scaling a barcode causes it be unscannable
posted

We are creating price labels to be printed and then scanned at the POS.

We've found that if we scale the barcode down to fit onto the label it can become unscannable.

This depends on the length of the SKU, but it appears that the first and last lines of the barcode are either clipped or scaled in such a way that they become too thin so that the scanner doesn't recognise them as the start and end of the barcode.

Is there a minimum width we need to enforce when the user is scaling the barcode element to fit on the label?

We've spotted this with the XamCode128Barcode which is the one used by most of our customers.

Parents
  • 2406
    posted

    Hi Chris, 

    Thank you for contacting us.

    As you are using the XamBarcode for printing it is recommended to have set its BarsFillMode property to EnsureEqualSize. Regarding the scaling of the control, I suggest you to have set Stretch=Uniform so it could fill its container dimensions. If the Stretch is set to None, the barcode will take its nominal size for its specified data and will not regret its parent container size, so if the parent container has smaller size, the barcode will be cut. You could play with the XDimension property value (the width of the thinnest bar) to achieve your desired behavior as have in mind that its default value is the nominal one and if set to smaller value, you could achieve unreadable barcode symbol by POS.

    I suggest you to look at the dimensions sample at https://ko.infragistics.com/samples/silverlight/barcode/#/dimensions where you could see all this properties and their connections. 

    Let me know if this helps or you need a further assistance.

     

    Regards,

    Petia

    Infragistics, Inc.

    https://ko.infragistics.com/support

Reply Children