i am using the follwing vb code to communicate to a serial printer (Epson TMu210D Point of Sale Printer) but when i run the application it shows run time erro 8015 ,could not set comm state,invalid parameter for communication
MSComm1.CommPort = 2
MSComm1.Settings = "9600,N,8,1"
MSComm1.InputLen = 0
If MSComm1.PortOpen = False Then MSComm1.PortOpen = True