Jun 15, 2011
trying to create a WPF application that will allow users to print a barcode label written in ZPL that is saved to a text file on the C: drive. I am able to print the barcode with the WPF Application except it prints the same serial # without incrementing to the next one. I would like have the application:Open the test.txt file and read the last serial # that was printed. Print the next serial #. Write the last serial # it printed to the file for the next it is printed so that if I printed 1,2,3 this time, the next time it would print 4,5,6. Below is my code for the test.txt file and my VB.net code.
View 6 Replies
The printing process doesn't look pretty, but I was unable to get it to print with PrintDocument.Print() and I could by using a Process. I am guessing the issue is with intSN declaration not appending the serial # back to the test.txt file, instead, it adds
the barcode back to the file.