Closed Msantos0266 closed 3 years ago
you forgot to use "[C]<img>" + PrinterTextParserImg.bitmapToHexadecimalString(iv) + "</img>\n"
<barcode>
tag has type 128. https://github.com/DantSu/ESCPOS-ThermalPrinter-Android#barcode
Cannot resolve method 'bitmapToHexadecimalString(android.widget.ImageView)
when I use this codes "[C]" + PrinterTextParserImg.bitmapToHexadecimalString(iv) + "\n"
Have you import PrinterTextParserImg class ?
how to implement
rs=st.executeQuery(Query);
while (rs.next())
{
"[L]\n" + "[L]BEAUTIFUL SHIRT[R]9.99e\n" + "[L] + Size : S\n" +
}
LinearLayout barcode1 = findViewById(R.id.barcode);
// iv.setLayoutParams(new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); // barcode1.addView(iv);