Star TSP100 is not able to print physically using microsoft point of service
<p>Hi I am stuck with previous 2-3 days for the printing functionality with the Star TSP100 printer. I am developing an application in Visual studio 2010. I have installed driver of the printer. also installed the "POS for .Net v1.12.exe" and connected the printer to the com port. I have written the code for implementing the printer. </p>

<pre><code>        PosExplorer explorer = null;
    DeviceInfo device = null;
    PosPrinter printer = null;
    explorer = new PosExplorer();
    DeviceCollection printers = GetPrinters();

            if (printers.Count != 0)
                printer = (PosPrinter)explorer.CreateInstance(printers[0]);

            string output = "test to print.";

            printer.Open();

            printer.Claim(5000);
            printer.DeviceEnabled = true;

            if (printer.State != ControlState.Idle)
                throw new Exception("Printer not ready: " + printer.State.ToString());
            //printer.CharacterSet = 1250;
            lineWidth = printer.RecLineWidth - 1;

            printer.PrintNormal(PrinterStation.Receipt, output.ToString());
            for (int i = 0; i &lt; 10; i++)
            {
                printer.PrintNormal(PrinterStation.Receipt, "Test "+i + Environment.NewLine);
            }
            printer.PrintNormal(PrinterStation.Receipt, output.ToString());

            printer.DirectIO(121, 0, null);
            CutPaper();
            printer.Release();
            Close();
</code></pre>

<p>Although, when i test the printing manually from the same printer, I working fine and printing the same. But, when i am running this code it's opening a window form "Microsoft PosPrinter Simulator" and when sending the print command its printing the same on the form.. What should i do now... Please help me..</p>
