Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am new to Embedded Engineering .
I have to develop a code which can send and receive data through USB to printer.

Kindly suggest me if any one has same scenario.

with regards,
Rohit
Posted

1 solution

You were not clear if you wanted to print from your embedded device or from a C# application on a PC.

I suggest you have a look at the MSDN documentation here: http://msdn.microsoft.com/en-us/library/windows/hardware/hh406260(v=vs.85).aspx[^]

Windows does supply generic USB printer drivers that you can use in C#. The link above also has downloadable generic USB driver examples for you to look at. I suggest at least looking through the documentation to try and get a better understanding of USB in general. I would also suggest you have a look at USB.org[^]

I suspect you are really looking for some cut and paste code to use, you may try this link: http://www.dreamincode.net/forums/topic/124753-usb-port-printing-through-c%23-code/[^]

Good luck.
 
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