Print from specific paper tray
Dec 18, 2020 15:43:57 GMT 1
Post by andersostling on Dec 18, 2020 15:43:57 GMT 1
We have a problem that we need to solve before going all-in on vDOS for a customer. Most printing tasks work excellent, but one thing remain to be solved. Not easy to explain, but I will try my best.
A legacy DOS application have two defined printers, lets call them White and Yellow. White prints on standard A4 paper, and Yellow is also A4 but is supposed to pick paper from another tray. The printers are using two control files with a lot of escape codes that sets printing style. White works fine with all tasks.
With NTVDM and shared windows printing via assigned LPT1 (on 32-bits Windows 10)
White and Yellow prints on the correct paper sources.
With vDOS (on 64 bit Windows 10)
When we select a printjob that is supposed to use the yellow papers, we still get printout from the standard white paper tray.
The printer command in config.txt is LPT1 = SEL:"" TIO:3 HORZ:0 VERT:0 FONT:"Consolas"
The control file LASER#3 (for Yellow printing) has this content. Comparing these two, I cant find any escape code that selects paper tray. Is there any other way to catch and analyze the output when choosing a Yellow printout?
" 27 69 27 27 38 108 50 54 65 27 38 108 48 49 69 27 38 108 53 72","RESET A4 toppmarginal"
" 27 40 115 53 72 27 40 115 51 66"," 5 CPI+ FETSTIL "
" 27 40 115 49 48 72 27 40 115 48 66 27 40 115 51 84","èTER 10 CPI NORMAL COURIER "
" 27 40 115 49 83"," ITALIC "
" 27 40 115 48 83"," END ITALIC "
" 27 38 100 49 68"," UNDERSCORE "
" 27 38 100 64"," END UNDERSCORE"
" 27 40 115 51 66"," bold "
" 27 40 115 48 66"," normal "
" 27 40 115 49 50 72 27 40 115 54 66 27 40 115 54 84","12 CPI 96 chars line extra black"
" 27 40 115 54 84 27 38 108 52 68"," letter Gothic 4 rader/tum"
" 27 40 115 49 48 72"," 10 CPI"
" 27 38 108 49 79 27 40 115 49 50 72 27 40 115 54 84","LANDSCAPE 12 CPI 96 chars line LETTER GOTIC"
" 10"," LINEFEED"
" 27 42 114 45 52 85 27 42 118 49 83","Black"
" 27 42 114 45 52 85 27 42 118 49 83","Black"
" 27 38 108 54 68"," 6 lines per inch "
Control file for White A4
" 27 69 27 38 108 50 54 65 27 38 108 48 49 69 27 38 108 49 72","RESET A4 toppmarginal"
" 27 40 115 53 72 27 40 115 51 66"," 5 CPI+ FETSTIL "
" 27 40 115 49 48 72 27 40 115 48 66 27 40 115 51 84","èTER 10 CPI NORMAL COURIER "
" 27 40 115 49 83"," KURSIV "
" 27 40 115 48 83"," AVBRYTER KURSIV "
" 27 38 100 49 68"," UNDERSTRYCKNING "
" 27 38 100 64"," AVBRYTER UNDERSTRYCKNING"
" 27 40 115 51 66"," bold "
" 27 40 115 48 66"," normal "
" 27 40 115 49 50 72 27 40 115 54 66 27 40 115 54 84","12 CPI 96 tecken pÜ linje extra svart"
" 27 40 115 54 84 27 38 108 52 68"," letter Gothic 4 rader/tum"
" 27 40 115 49 48 72"," 10 CPI"
" 27 38 108 49 79 27 40 115 49 50 72 27 40 115 54 84","LIGGANDE 12 CPI 96 tecken pÜ linje LETTER GOTIC"
" 10"," RADMATNING"
" 27 42 114 45 52 85 27 42 118 49 83","svart"
" 27 42 114 45 52 85 27 42 118 49 83","svart"
" 27 38 108 54 68"," 6 rader per tum "
A legacy DOS application have two defined printers, lets call them White and Yellow. White prints on standard A4 paper, and Yellow is also A4 but is supposed to pick paper from another tray. The printers are using two control files with a lot of escape codes that sets printing style. White works fine with all tasks.
With NTVDM and shared windows printing via assigned LPT1 (on 32-bits Windows 10)
White and Yellow prints on the correct paper sources.
With vDOS (on 64 bit Windows 10)
When we select a printjob that is supposed to use the yellow papers, we still get printout from the standard white paper tray.
The printer command in config.txt is LPT1 = SEL:"" TIO:3 HORZ:0 VERT:0 FONT:"Consolas"
The control file LASER#3 (for Yellow printing) has this content. Comparing these two, I cant find any escape code that selects paper tray. Is there any other way to catch and analyze the output when choosing a Yellow printout?
" 27 69 27 27 38 108 50 54 65 27 38 108 48 49 69 27 38 108 53 72","RESET A4 toppmarginal"
" 27 40 115 53 72 27 40 115 51 66"," 5 CPI+ FETSTIL "
" 27 40 115 49 48 72 27 40 115 48 66 27 40 115 51 84","èTER 10 CPI NORMAL COURIER "
" 27 40 115 49 83"," ITALIC "
" 27 40 115 48 83"," END ITALIC "
" 27 38 100 49 68"," UNDERSCORE "
" 27 38 100 64"," END UNDERSCORE"
" 27 40 115 51 66"," bold "
" 27 40 115 48 66"," normal "
" 27 40 115 49 50 72 27 40 115 54 66 27 40 115 54 84","12 CPI 96 chars line extra black"
" 27 40 115 54 84 27 38 108 52 68"," letter Gothic 4 rader/tum"
" 27 40 115 49 48 72"," 10 CPI"
" 27 38 108 49 79 27 40 115 49 50 72 27 40 115 54 84","LANDSCAPE 12 CPI 96 chars line LETTER GOTIC"
" 10"," LINEFEED"
" 27 42 114 45 52 85 27 42 118 49 83","Black"
" 27 42 114 45 52 85 27 42 118 49 83","Black"
" 27 38 108 54 68"," 6 lines per inch "
Control file for White A4
" 27 69 27 38 108 50 54 65 27 38 108 48 49 69 27 38 108 49 72","RESET A4 toppmarginal"
" 27 40 115 53 72 27 40 115 51 66"," 5 CPI+ FETSTIL "
" 27 40 115 49 48 72 27 40 115 48 66 27 40 115 51 84","èTER 10 CPI NORMAL COURIER "
" 27 40 115 49 83"," KURSIV "
" 27 40 115 48 83"," AVBRYTER KURSIV "
" 27 38 100 49 68"," UNDERSTRYCKNING "
" 27 38 100 64"," AVBRYTER UNDERSTRYCKNING"
" 27 40 115 51 66"," bold "
" 27 40 115 48 66"," normal "
" 27 40 115 49 50 72 27 40 115 54 66 27 40 115 54 84","12 CPI 96 tecken pÜ linje extra svart"
" 27 40 115 54 84 27 38 108 52 68"," letter Gothic 4 rader/tum"
" 27 40 115 49 48 72"," 10 CPI"
" 27 38 108 49 79 27 40 115 49 50 72 27 40 115 54 84","LIGGANDE 12 CPI 96 tecken pÜ linje LETTER GOTIC"
" 10"," RADMATNING"
" 27 42 114 45 52 85 27 42 118 49 83","svart"
" 27 42 114 45 52 85 27 42 118 49 83","svart"
" 27 38 108 54 68"," 6 rader per tum "