Raj,
It can be difficult to set up the Star TSP 800. I had an awful time with it. I actually don't use the Maine format. It didn't format as well. I just use the default Format 1. I haven't heard anything from any pharmacy as it has all of the tamper-proof features required.
When using that format, I use 400 twips on left and 650 twips on the right. No negative or positive signs. We also use portrait and not landscape.
The URL below has all of the software and drivers you will need. It also contains PDFs of my settings, which have to be pretty much the same. Once you use one of the small apps in the folder that is online, you can set an IP address for the printer, which will allow you to access it by IP address on your browser. Once your browse to the page, you will need the username and password, which is "root" and "public" without the quotes. But, after all that work getting in, there isn't much you can do but look around a bit.
The setting I use for paper is 104mm x 140mm.
http://tinyurl.com/tsp800The other important site is
http://www.starmicronics.com/rxprinter/t8rxconfig.exe BUT IT SEEMS TO BE BROKEN. This is for the configuration utility to change the black mark from invalid to valid. I have know idea why it isn't set to valid by default.
Anyway, I think I am going to be able to get the utility tomorrow.
Oh, by the way, if you turn the printer off, then press down the Feeder button on the front recessed part of the printer, then keeping your finger pressed down, turn it back on. It will print out a long sheet of all your settings.
_________________________________________
Even though this is included with the above download, it will be much easier if you simply go to:
http://www.box.net/shared/prqubtbligand download the config utility. Thanks to Adam, I now know exactly how to set your black mark detector.
Download the Star TSP 700/800 Setup Utility - Advanced Mode
Click on Tickets
Select On from the drop down box to the right of Start Position Detect
Click on the Main tab
Click on Use Settings
You are done. Star Micronics goes out of their way to make this difficult including broken links on their site.
Good luck.