Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PosExplorer posExplorer = new PosExplorer();
DeviceCollection receiptPrinterDevices = posExplorer.GetDevices(DeviceType.PosPrinter);
DeviceInfo receiptPrinterDevice = posExplorer.GetDevice(DeviceType.PosPrinter,"SRP2");
PosPrinter printer = (PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);

printer.Open();
printer.Claim(10000);
printer.DeviceEnabled = true;
printer.PrintNormal(PrinterStation.Receipt, "test print 1");


I debug and everything went through without exception, already confirmed also that the printer targeted is the correct one, however the printer is not printing anything. Is there any step that I did wrong? Any guidance is greatly appreciated. Thanks
Posted

Turn the printer On. :) Just kidding, I am sure you already made sure it is connected and turned on.

I found the link below, which has information about turning debugging logging on and in the last post, they say they fixed it by installing the driver with Administrative rights so it can modify the Configuration.xml file.

http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/thread/e691ac68-39b7-4407-9e06-94f13b833c88/[^]

Soren Madsen
 
Share this answer
 
HI,

I know this an old thread but just want to add if someone will stumble on this one.
place the
printer.papercut(100);
after the printer.printnormal
 
Share this answer
 

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