Zlgo
Member
Hi
I want to change some "variables" in file print.prn which is "form" for printing bills on serial pos printer.In this file is
"ESC"sequences and I change this varibales (xxxx and yyyy) with real data like xxxx change with number for barcode and yyyy for date and time.
This part I do for example with code "Datoteka= Datoteka.Replace("xxxx","88888")", but problem is that when I send to printer this file instead
of barcode stay "unknown barcod type". So after looking what is the problem ("variabla" xxxx is corrected replaced with real data) find that opening
(file.ReadString) and just create the new but the same file with File.WriteString not produce exactly same copy because occur change in sam ESC sequences
and printing is not correct. Is there other solution to do this replacement in file without unwanted change file, and in same time make replacement just targeted data?
I want to change some "variables" in file print.prn which is "form" for printing bills on serial pos printer.In this file is
"ESC"sequences and I change this varibales (xxxx and yyyy) with real data like xxxx change with number for barcode and yyyy for date and time.
This part I do for example with code "Datoteka= Datoteka.Replace("xxxx","88888")", but problem is that when I send to printer this file instead
of barcode stay "unknown barcod type". So after looking what is the problem ("variabla" xxxx is corrected replaced with real data) find that opening
(file.ReadString) and just create the new but the same file with File.WriteString not produce exactly same copy because occur change in sam ESC sequences
and printing is not correct. Is there other solution to do this replacement in file without unwanted change file, and in same time make replacement just targeted data?