Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
//Line One
PosExplorer explorer = new PosExplorer();
//Line Two
DeviceInfo receiptPrinterDevice = explorer.GetDevice(DeviceType.PosPrinter, "What Should Be This");

when i execute above second line, it allways give me null. I apply my Printer Name and port id as logical name
but result was same

I use BIXOLON SRP-275A Printer(Com1 Port). This is not a USB printer

I have not good idia with logical name, I search this and Most Comman Answer is Logical Name

What is this Logical name..?
How To Create It .. ?

How Can I Print text using with above command..?
Posted
Comments
Prasad Khandekar 22-Aug-13 1:31am    
Hello Anushika,

Try the sample code found at http://msdn.microsoft.com/en-us/library/bb429007%28v=winembedded.11%29.aspx. In that code add following lines at the beginning of the for loop to print the logical names of the devices

foreach(string strlName : device.LogicalNames) {
Console.Write("Device Type : ");
Console.Write(Device.DeviceType);
Console.Write(", Logical Name : ");
Console.WriteLine(strlName);
}

Regards,

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900