' Initiate the StreamReader and pass it to the FileStreamĭim StrmR As StreamReader = New StreamReader(Fstrm) Private Sub btnPrintLabels_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintLabels.Clickĭim intSN As Integer = Format(1, "000000000")ĭim Fstrm As FileStream = New FileStream("C:\Labels\test.txt", FileMode.Open) Below is my code for the test.txt file and my VB.net code. So that if I printed 1,2,3 this time, the next time it would print 4,5,6. Write the last serial # it printed to the file for the next it is printed.Open the test.txt file and read the last serial # that was printed.Ideally, I would like have the application: The same serial # without incrementing to the next one. I am able to print the barcode with the WPF Application except it prints I am new to Visual basic 2010 and 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |