I need help for printing bill out in correct size and setup it up

Your template doesn’t match the output. I think you haven’t installed the correct printer driver, or you have changed some default settings on the printer. Did you follow the example given previously?:

Also are you printing this on the Star TSP100? Because you mentioned previously about an Epson. Can you tell us exactly what printers you have and where you have them connected? E.g. which printer for kitchen, which for POS ?

This is a printer setting and nothing to do with SambaPOS. You need to change these settings either via the printer driver or configuration settings on the printer. Usually printer configuration settings are changed either by a configuration utility or DIP switches on the actual printer - you need to check the user manual for the printer to find out how to change the left margin and top margin.

I am pretty sure this is because you have Chinese text in the order tag. Because one Chinese character actually takes up the space of 2 alphanumeric characters, it can mess with the formatting in ESC/POS mode. Is it possible you don’t print Chinese on the customer receipt and only for the kitchen? Otherwise, you might have to use HTML or the new Document Printer type. You might get better results with the Document Printer over HTML because it gives more flexible customisation, there are some examples you can get and just amend them, however I noticed earlier you struggled with the HTML format so you may have similar issues with the Document Printer.

I got a few clients using Chinese on receipts, we always have to use HTML for this reason but we are moving to Document Printer because it gives better flexibility of output (e.g. supports tables, non-fixed width fonts - ideal for Chinese).

You can find info and example template for Document Printer in the release notes:

As an alternative, which might work fine as a quick fix, just change your order tags section like this:

[ORDER TAGS]
-- Format for order tags
<L00>* {ORDER TAG NAME}
<R00>{ORDER TAG PRICE}

This will result in each order tag on 2 lines, avoids the justified format (which tends to cause problems with Chinese text). It’s not ideal but it “should” work.