Center Logo with <BMP> and cash drawer job executed twice

I am using an HTML printer and I was able to print out my BMP logo 72x72px and 1kb. The problem is I cannot center the logo image if I put spaces before or after it gives me an error and does not print. If I put it before

it goes to the right if I put it after
it goes to the left. What is the maximum size and dimension that can be printed using BMP.

When I print the receipt a small blank portion of paper comes out and quicks open the cash drawer but later in the middle of printing the receipt it quicks open once again. I have checked my rules and none of them have the action of open drawer. I have a rule to open the drawer as well and I deactivated but I still have the double quick.

use <center> </center> tag

I have used the center tag but still nothing

<ec> Enable Center and the <center> </center>


Post your Full Code please


-- General layout
<div style="font-weight:normal;text-align:left;font-family:Tahoma;font-size:9.5px">
<C10>                  AG Technology
<J00>Time:{TIME}                 Date:{TICKET DATE} 
<L00>Ticket No:{TICKET NO}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total                                         ${TICKET TOTAL}
<J00>Tendered|${TENDERED TOTAL}
<J00>Change|${CHANGE TOTAL}
<C10>               T H A N K   Y O U
<C10>             GRACIAS POR TU VISITA!
<C00>Exchange only accepted within 7 days from 
<C00>purchase date in original packaging.
<C00>No returns on Computer Repair or Software.




-- Default format for orders

-- Format for gifted orders

-- Nothing will print for void lines

-- Format for order tags

-- Table entity format
<L00>Station: {ENTITY NAME}

-- Customer entity format
<J00>Customer: {ENTITY NAME} |Phone: {ENTITY DATA:Phone}

if you are using HTML template
you this code

<l><center><img src="d:\logos.bmp"></center>

Your <div> tag at the very top has: text-align:left

And you have no closing </div> tag either.

1 Like

Try that?

it didnt print the image just d:\logos.bmp

UPDATE Thank you all for the help. @QMcKay I was able to format it with div. and center it. The problem is that since the widthof my printer paper is 2.25 inch ( smaller than other thermal printers) The “center” will print thew logo all the way to the right. Is there any way to only add spaces and still print the logo. When I added spaces manually similar to AG Technology it gave me an error.

did not work it would only print the location of the file note the bmp picture

Alternatively you can edit your logo with paint and add some whitespace to the left side of your logo until it centers.

Yes thats exactly what I did thank you is there any limit in the size that can be printed using BMP?
I am still trying to figure out why my the cash drawer is opening twice

It first opens as soon as the order is paid and then after the blank space comes out it opens once again

Post your full Printer Template.

Also, post a screenshot of your Payment Processed Rule.

You may also need to look at how your printer driver/utility/preferences is configured. It might be that your driver is set to send Drawer Kick command at page or document end.

Have you looked at your printer driver settings as @QMcKay suggested, i cant see anything in your printer template that would send the open drawer command so its probably a setting in your printer driver

I have mine set to NOT automatically kick the drawer when a receipt prints, instead i have added the open drawer command into the top of my ticket template so it opens when the ticket prints as for some transactions such as a card payment you might not want the drawer to open

Your Constraint is not correct. It should wither be removed, or be this instead:

Remaining Amount Equals 0

But that won’t cause the drawer kick problem you are having.