I have a very simple bit of code that instantiates a winsock object, opens a connection to port 9100, sends a string of ZPL code (zebra printer language), and quits.
It works perfectly in VB.
That same code ported to VBA does not work.
I setup a program to act as a fake destination printer so I could see what data actually gets sent, and the VB app sends a nice string.. the other seems to send the data in a binary form. Or maybe it's just corrupted?
The winsock control is pretty simple, it doesn't have many properties to mess with, and I can't see any that would affect this. Has anyone else seen this behavior?
It works perfectly in VB.
That same code ported to VBA does not work.
I setup a program to act as a fake destination printer so I could see what data actually gets sent, and the VB app sends a nice string.. the other seems to send the data in a binary form. Or maybe it's just corrupted?
The winsock control is pretty simple, it doesn't have many properties to mess with, and I can't see any that would affect this. Has anyone else seen this behavior?