Have the user enter the name of the printer they are using as a part of the setup to a variable/property.
Don't hard code the name or the printer in your app.
Example: set printer to name eval('pcPrinter') works for me. here pcPrinter is the name I pass.
>For me, there is a draw back when it comes to the end user, they might used or buy different brand of receipt printers...If I coded like what you said, let say in my release version I use the "Set print to name Epson", but the end user buy themselves a Star Micronics Receipt printers.. then I have to change my Codes or rename the printer name in Windows which is im trying to avoid.
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching