I have a TM-T20 EPSON Printer that I need to use to print receipts.
To program it, I have downloaded POS for .NET v1.12 and installed in my PC with Windows 7, 32 bits.
I have used SetupPos application to set the logical name of it and define the IP address. Only for testing, I used T20 as the logical name.
Then, by using the sample (PrinterSample_Step2), I could print a receipt using that logical name .
Well.. I tried to change the logical name of the printer, from T20 to something more meaningfull, but after I set it in SetupPOS application, the new logical name was not recognized.
I used the following piece of code to list all the devices:
After that, I saw that the only logical name present in the system is T20. It seems that the first setting got stuck without the possibility to be changed.
Only for testing again, by using SetupPos, I changed to T20_1. It works in SetupPos since I can test the printing from there, but it is not recognized by Pos .NET (it still shows T20).
What is the problem?
Any help will be greatly appreciated
Thanks
Jaime
To program it, I have downloaded POS for .NET v1.12 and installed in my PC with Windows 7, 32 bits.
I have used SetupPos application to set the logical name of it and define the IP address. Only for testing, I used T20 as the logical name.
Then, by using the sample (PrinterSample_Step2), I could print a receipt using that logical name .
Well.. I tried to change the logical name of the printer, from T20 to something more meaningfull, but after I set it in SetupPOS application, the new logical name was not recognized.
I used the following piece of code to list all the devices:
Microsoft.PointOfService.DeviceCollection devices = posExplorer.GetDevices(); foreach (DeviceInfo device in devices) { string name = String.Empty; if (device.LogicalNames.Length > 0) name = device.LogicalNames[0]; Console.WriteLine("[" + name + "]"); }
After that, I saw that the only logical name present in the system is T20. It seems that the first setting got stuck without the possibility to be changed.
Only for testing again, by using SetupPos, I changed to T20_1. It works in SetupPos since I can test the printing from there, but it is not recognized by Pos .NET (it still shows T20).
What is the problem?
Any help will be greatly appreciated
Thanks
Jaime
Powered by C++