H? all,
Can i connect to serial port from .aspx page? Is this possible?
The scenario is like to this:
Our computer is connected to a barcod label printer via the com port. And when i call an aspx in this computer, can i connect to the printer via the com port? I know that SerialPort control can only be used in WindowsApplications, but i can't find the solution? I must connect to the printer..
Regards..
There is aSerialPort class in the 2.0 version of the .NET Framework.If you just need to print, it would be easier to use the built in printer drivers than to mess with a serial port (the PrintDocument class).
I would even shell out to DOS and use the primitive print command before dealing with a Serial port...ack, nack?
Thank you all but i solved it by using a batch file and windows service/windows app. by using SerialPort class.
0 comments:
Post a Comment