ciao a tutti, sto utilizzando la libreria di Star-dust per stampare con una stampantina bluetooth pos (POS-5802DD). il mio problema è il dover stampare un immagine e sto abbastanza impazzendo per riuscire a farlo nel modo corretto.
Utilizzando la libreria SD_BT_PRINTER_7 e la funzione AddBuffer_Bitmap l'immagine mi risulta sempre spostata verso destra di quasi un centimetro.... (inoltre spesso non stampa o si incasina....) qualcuno ha qualche suggerimento o consiglio?
ho provato anche ad utilizzare l'sdk fornito con la stampante per generare un array di byte da passare tramite AddBuffer_ArrayByte ma in questo caso stampa delle righe grafiche senza molto senso...
PS versione b4a 8.30 Beta #1
Grazie
Hi everyone, I'm using the Star-dust library to print with a bluetooth pos printer pos (POS-5802DD). my problem is having to print an image and I'm just going crazy to be able to do it correctly.
Using the SD_BT_PRINTER_7 library and the AddBuffer_Bitmap function the image is always shifted to the right of almost a centimeter .... (also often does not print or gets messed up ....) does anyone have any suggestions or advice?
I also tried to use the sdk supplied with the printer to generate an array of bytes to be passed through AddBuffer_ArrayByte but in this case it prints the graphic lines without much sense ...
PS version b4a 8.30 Beta # 1
AddBuffer_Bitmap (Path As String, Filename As String, LeftSpace As Int) As String
In the AddBuffer method you find a LeftSpace field, used to move the image starting from the left margin.
If you have problems with some printers, this may be because not all printers use the same method / command for images, in fact you also find the AddBuffer_Bitmap2 command. Make sure the image is not too large or the distance is not such that it loses the connection from the printer.
the sdk should not be sent to ArrayByte. the SDK is already a library, you should eventually connect it to your B4X code and recall the methods if you have the sdk documentation.
ArrayByte is used to send raw data (images, text or other) to the printer without the filter of my library, so as to add missing methods, or specific methods for certain printer models