|
Post by roy on Jul 19, 2022 13:31:48 GMT 1
Dear Support Vdos, I hereby attach that output file. At the top there is a " pc$M" and in the middle there are "W1w1" and "w0W0". How can those characters or fonts be lost in those output files? Thanks LPT1.asc (798 B) LPT1.txt (1.54 KB)
|
|
|
Post by Jos on Jul 19, 2022 14:20:12 GMT 1
.raw files are a copy of the printer output as sent by your program. .txt files are translated to Unicode text. So you can open such a file with a Windows program without having to select some code page to get correct extended ASCII characters. Printer control codes have no meaning in that, so for instance <Esc> is stripped. If you have look at the .txt files with a hex editor you’ll notice every character consists of two bytes (Unicode , not ASCII).
If you however want to view the printers hardcopy, you’ll have to print to a PDF printer.
Jos
|
|
|
Post by roy on Jul 19, 2022 14:47:19 GMT 1
Dear Mr. Jos, I hereby attach the pdf output. Can the result of asc file or unicode the result be the same as the pdf output result I attached? Thanks LPT1.pdf (7.34 KB)
|
|
|
Post by Jos on Jul 19, 2022 15:03:30 GMT 1
No, those are entirely different things. An .asc file eventually contains printer control codes specific to the expected printer and used by that to format the hardcopy. A .txt file is mostly for importing (large amounts of) data into a Windows program.
If you don’t want the printer control codes, you have to adjust the printer settings in your program.
Jos
|
|
|
Post by roy on Jul 19, 2022 15:24:24 GMT 1
dear mr. Jos
how do I make adjust in the vdos program without the output of the control code?
thanks
|
|
|
Post by Jos on Jul 19, 2022 16:15:14 GMT 1
Control codes are inserted by your program. So you have to change the printer settings in that.
Or perhaps print to a Windows Text-Only printer, saving its output to a file?
Jos
|
|
|
Post by roy on Jul 20, 2022 13:17:04 GMT 1
Dear Mr. Jos,
I hereby attach the Generic / Text Only with port File:
Thanks
|
|
|
Post by Jos on Jul 20, 2022 14:07:34 GMT 1
There is no attachment.
Jos
|
|
|
Post by roy on Jul 20, 2022 15:21:20 GMT 1
|
|
|
Post by Jos on Jul 20, 2022 15:42:47 GMT 1
Plain text as you wanted.
The Text Only driver however spread the "SI12202041" string over individual lines. No idea why it would do that. So best to dispose of the printer control codes at the source, your program.
Jos
|
|
|
Post by roy on Jul 20, 2022 15:49:33 GMT 1
dear mr. jos
the total value below does not appear
|
|
|
Post by Jos on Jul 20, 2022 16:10:25 GMT 1
I didn't notice that.
The Text Only driver also added multiple empty lines. The total value was so transported to the second page, and you only printed the first?
Jos
|
|