Background: I write VB6 programs that write ZPLII code to txt files. Then when the files are complete, in the program I copy the txt file to the LPT1 port/printer with this code:
Shell("CMD /CCOPY Lbl.txt LPT1", vbHide). This all works fine - have been doing this for years.
Now I have a need where I print label A, label B, label A, label B... These all need sent to the printer at one time. So I create a txt file, 66Kb in size and send it to the printer as stated above.
Here is the issue: If I let the labels print continously (64 labels), it prints fine and I get all 64 labels. However, where the labels are used they cannot do that. They assemble product, put on 2 labels, press pause button on printer, repeat. When it is done this way, they get around 30 labels and that is it. The printer "loses" the rest. I checked the file that is sent to the printer and it contains the code for all 64 labels. The printer has 16MB of memory so there is plenty of room to hold a 66Kb file.
I tried a test. I took the Lbl.txt file and opened a command prompt and typed "Copy Lbl.txt LPT1". The printer starts to print and then I press pause button on the printer after a couple labels. The Command prompt cursor is flashing, but it does not return to input mode to where you can type in another command. Then after a while it returns the message "The requested resource is in use. 0 file(s) copied."
Anyone have any idea how I can get the whole file into the printer so I don't not lose my labels?