Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello guys,
I'm working with receipts serial number program, and my boss want from me to make my program working with only one unique printer.
So, is there any way to get a unique serial number of printer or id or any thing that make my program print only with that printer?

I want this approach to make a strong license for this program.

Note: the printer connect with my program through USB.

My regards :)
Posted
Updated 15-Jun-13 21:20pm
v2

I think you are going to be out of luck.
AFAIK, there is no standard way to access printer serial number or any other unique identifying number electronically that works for all printers. It may be possible on some printers but the exact mechanism will probably be different. Your best solution is to talk to the manufacturer and see if they do provide the info you want, and if so, how.

But I suspect that your boss is going to be disappointed - but at least you can show him emails which explain why it isn't your fault! :laugh:
 
Share this answer
 
Comments
Rasool Ahmed 16-Jun-13 6:39am    
Alright, thanx.
OriginalGriff 16-Jun-13 6:44am    
You're welcome!
Monjurul Habib 16-Jun-13 15:57pm    
5+
Hi ,
Check on the link below hope so it might be helpful for you to read the Printer Serial no.

1) http://stackoverflow.com/questions/1176053/read-usb-device-serial-number-in-c-sharp[^]

2) Reading Data Directly from the Printer[^]
 
Share this answer
 
 
Share this answer
 
Comments
CHill60 10-May-15 17:34pm    
Off topic - does not provide unique serial number

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