Hello
I would like some help on printing QRCode to ESC / POS (Bluetooth Printer)
1. I use QRGenerator to create QRCode in a Bitmap object
2. I use EscPosPrinter.bas for printing.
3. If I use (WriteQRCode) from EscPosPrinter the QRCode is printed but you do not scan at all.
4. If I use (PrintImage) the QRCode is printed diagonally
4.1. Here is a small example of my code for printing QRCode as an image
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
the result is a diagonal print of QRCode image.
Any Help or Is there an example or way to print the QRCode either as an image or directly as a QRCode?
Thanks ...
			
			I would like some help on printing QRCode to ESC / POS (Bluetooth Printer)
1. I use QRGenerator to create QRCode in a Bitmap object
2. I use EscPosPrinter.bas for printing.
3. If I use (WriteQRCode) from EscPosPrinter the QRCode is printed but you do not scan at all.
4. If I use (PrintImage) the QRCode is printed diagonally
4.1. Here is a small example of my code for printing QRCode as an image
			
				B4X:
			
		
		
		' QrGen is QRGenerator class
' Prn   is EscPosPrinter class
' sQRString is my string with 114 length for creating QRCode
' 1. Create an image with QRCode
dim QrBmp as Bitmap = QrGen.Create(sQRString)
' 1.1 If assing QrBmp on view is currect '
' 2. Print QRCode Image with EscPosPrinter object
dim img as AnImage = Prn.ImageToBWIMage(QrGen)
img = Prn.ThresholdImage(img, 128)
img = Prn.PackImage(img)
' 3. Final Print QRCode Image
Prn.PrintImage(img)the result is a diagonal print of QRCode image.
Any Help or Is there an example or way to print the QRCode either as an image or directly as a QRCode?
Thanks ...
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		