infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Can't print bitmap and barcode on the same line #39

Closed AngeloMateus closed 6 months ago

AngeloMateus commented 5 years ago

I know the SDK allows it because the sample prints from the SDK app do it. I'm trying to print a barcode with a bitmap image side by side but every append command starts in a newline and I'm not sure how to use appendBitmap and appendBarcode with appendMultiple.

       commands.push({ appendCutPaper: 'PartialCut'});
       commands.push({
            appendBarcode: "{B" + '88712365444',
            BarcodeSymbology: 'Code128',
            BarcodeWidth: 'Mode1',
            height: 100,
            hri: true,
        });
        commands.push({
            appendBitmap: logo.data,
            width: 100,
            bothScale: true,
            diffusion: true,
        });

IMG_2047

infoxicator commented 5 years ago

I think I faced this issue before but couldn’t find a workaround. Might need someone to look into it maybe try again to see if it is possible

hunwalk commented 5 years ago

Barcodes on receipts should be standardized. You shouldn't use any artwork at the same line, because cheaper readers can find it distracting. However i will look into it later.