Thread View: alt.msdos.programmer
11 messages
11 total messages
Started by IOL-News
Tue, 13 Mar 2001 20:41
DOS printing ..help please ..
Author: IOL-News
Date: Tue, 13 Mar 2001 20:41
Date: Tue, 13 Mar 2001 20:41
21 lines
2044 bytes
2044 bytes
Hi All : A tricky problem with my printer. As part of the EURO project being done by me , a txt file is created in a process. This file is written to the LPT port and this is spooled to a HP laser printer.This file has EURO symbols.The software generating the file is EURO compliant and I can see the EURO symbol being generated. When the file is written to the LPT port, I can see the instruction to the printer. The EURO symbol has got an ASCII value of 128.When I debug the flat file , I can see '80' (128 in HEXA) for the EURO symbol.But , the prointer prints some freak character. Also , what is the relation between WINDOWS,MS-WORD and the PRINTER , as regards recognising the EURO symbol. TIA Cheers Lig
Re: DOS printing ..help please ..
Author: Bovine Unit #243
Date: Wed, 14 Mar 2001 01:49
Date: Wed, 14 Mar 2001 01:49
13 lines
2026 bytes
2026 bytes
> When the file is written to the LPT port, I can see the instruction to the > printer. The EURO symbol has got an ASCII value of 128.When I debug the flat > file , I can see '80' (128 in HEXA) for the EURO symbol.But , the prointer > prints some freak character. My guess is if your printer prints directly from the file (i.e. it's not PostScript printer or something), then the printer is printing from a character look-up table in its ROM. Is the "freak character" French (?) character "C" with funny tail? If that is so, then it must be updated to have Euro symbol in its ROM. If your HP printer is several years old and doesn't contain Euro symbol, then you'll have to somehow generate a graphic character and send it to the printer as graphic or update the character set in ROM.
Re: DOS printing ..help please ..
Author: Alexander Russell
Date: Wed, 14 Mar 2001 05:41
Date: Wed, 14 Mar 2001 05:41
23 lines
2585 bytes
2585 bytes
"Bovine Unit #243" <bov243@karry.shadowdale.net> wrote in message news:Pine.BSF.4.33.0103131941290.361-100000@karry.shadowdale.net... > > When the file is written to the LPT port, I can see the instruction to the > > printer. The EURO symbol has got an ASCII value of 128.When I debug the flat > > file , I can see '80' (128 in HEXA) for the EURO symbol.But , the prointer > > prints some freak character. > > My guess is if your printer prints directly from the file (i.e. it's not > PostScript printer or something), then the printer is printing from a > character look-up table in its ROM. Is the "freak character" French (?) > character "C" with funny tail? If that is so, then it must be updated to > have Euro symbol in its ROM. If your HP printer is several years old and > doesn't contain Euro symbol, then you'll have to somehow generate a > graphic character and send it to the printer as graphic or update the > character set in ROM. > The printer may support many character sets, but the text file may not conatin the code to switch to the character set with the characters you want. See the printers reference manual, and update the program that makes the text file to add the code sequence required to set the character set.
Re: DOS printing ..help please ..
Author: Christoph Merten
Date: Wed, 14 Mar 2001 15:07
Date: Wed, 14 Mar 2001 15:07
12 lines
1783 bytes
1783 bytes
Alexander Russell scribbled: > The printer may support many character sets, but the text file may not > conatin the code to switch to the character set with the characters you > want. See the printers reference manual, and update the program that makes > the text file to add the code sequence required to set the character set. Or the printer is so old (3 or 4 years or older) that the euro symbol is not available. Then you have to upload the font yourself.
Re: DOS printing ..help please ..
Author: IOL-News
Date: Wed, 14 Mar 2001 20:35
Date: Wed, 14 Mar 2001 20:35
23 lines
2221 bytes
2221 bytes
How do I upload the font myself. Did get to see some useful information at the HP site about the EURO symbol.But not sure if it will work in DOS. TIA & Cheers Lig "Christoph Merten" <chrism@gruppenhaus.de> wrote in message news:3AAF892E.465DE870@gruppenhaus.de... > > > Alexander Russell scribbled: > > > The printer may support many character sets, but the text file may not > > conatin the code to switch to the character set with the characters you > > want. See the printers reference manual, and update the program that makes > > the text file to add the code sequence required to set the character set. > > Or the printer is so old (3 or 4 years or older) that the euro symbol is not > available. > Then you have to upload the font yourself. >
Re: DOS printing ..help please ..
Author: Christoph Merten
Date: Thu, 15 Mar 2001 07:22
Date: Thu, 15 Mar 2001 07:22
18 lines
1923 bytes
1923 bytes
IOL-News schrieb: > How do I upload the font myself. Did get to see some useful information at > the HP site about the EURO symbol.But not sure if it will work in DOS. You can easily send the symbol as a PCL raster graphic [1b 2a 62 #...# 57 data]. #...# = number of bytes you want to upload as data. or you can change the character code of a special character: [1b 2a 63 #...# 45]. #...# = character code. then you upload the data for this character code: [1b 28 73 #...# 57 data] #...# = number of bytes and then the data. hope this helps ciao chris
Re: DOS printing ..help please ..
Author: Marcus Houlden
Date: Thu, 15 Mar 2001 11:55
Date: Thu, 15 Mar 2001 11:55
37 lines
2946 bytes
2946 bytes
On Tue, 13 Mar 2001 20:41:44 GMT, IOL-News <lignite.nospamm@oceanfree.net.nospamm> wrote the following to comp.os.msdos.misc: > Hi All : > > A tricky problem with my printer. > > As part of the EURO project being done by me , a txt file is created in a > process. This file is written to the LPT port and this is spooled to a HP > laser printer.This file has EURO symbols.The software generating the file is > EURO compliant and I can see the EURO symbol being generated. > > When the file is written to the LPT port, I can see the instruction to the > printer. The EURO symbol has got an ASCII value of 128.When I debug the flat > file , I can see '80' (128 in HEXA) for the EURO symbol.But , the prointer > prints some freak character. If you print plain text to the printer, you have to make sure the printer itself has the Euro character as part of its character set. Most of them don't; read the instruction manual to see if yours does. > > Also , what is the relation between WINDOWS,MS-WORD and the PRINTER , as > regards recognising the EURO symbol. In Windows there are True Type fonts with the Euro character. When a Word document containing these characters (and fonts) is printed it gets processed by the GDI which converts it to a format the printer can understand. This is at a different level to printing text and contains instructions such as "print circle", "print dot", "set colour to blue" and the like. -- Marcus Houlden "Swear words: Never use asterisks, which are just a cop out" (Guardian Style Guide: http://www.guardian.co.uk/styleguide/)
Re: DOS printing ..help please ..
Author: Roy
Date: Fri, 06 Apr 2001 18:42
Date: Fri, 06 Apr 2001 18:42
37 lines
3026 bytes
3026 bytes
I am not very sure of how raster graphics works. I believe the character is drawn up on a eight
by eight or more raster or perhaps less, e.g.:
128 x x sum(1 to 128) = 256dec = FFh
64 x x 16 + 8 = 24dec = 18h
32 x x
16 x x x x x x x x
8 x x x x x x x x this would then produce a eight digit number: 256,
4 x x 24,24,24,24,24,24,256 by adding the relative numbers
2 x x together for each column. Would I then be
1 x x required to send (all in hex):
"1b 2a 62 8 57 FF 18 18 18 18 18 18 FF" to the printer to print this H character ?
Have I got it right ?
To reply remove the numeral before the @ in my e-mail address
Christoph Merten wrote in message <3AB06DAA.9A4B65A1@gruppenhaus.de>...
>IOL-News schrieb:
>
>> How do I upload the font myself. Did get to see some useful information at
>> the HP site about the EURO symbol.But not sure if it will work in DOS.
>
>You can easily send the symbol as a PCL raster graphic [1b 2a 62 #...# 57
>data]. #...# = number of bytes
>you want to upload as data.
>
>or you can change the character code of a special character: [1b 2a 63 #...#
>45]. #...# = character code.
>then you upload the data for this character code: [1b 28 73 #...# 57 data]
>#...# = number of bytes and
>then the data.
>
>hope this helps
>
>ciao chris
Re: DOS printing ..help please ..
Author: Roy
Date: Fri, 06 Apr 2001 18:42
Date: Fri, 06 Apr 2001 18:42
37 lines
2971 bytes
2971 bytes
I am not very sure of how raster graphics works. I believe the character is drawn up on a eight
by eight or more raster or perhaps less, e.g.:
128 x x sum(1 to 128) = 256dec = FFh
64 x x 16 + 8 = 24dec = 18h
32 x x
16 x x x x x x x x
8 x x x x x x x x this would then produce a eight digit number: 256,
4 x x 24,24,24,24,24,24,256 by adding the relative numbers
2 x x together for each column. Would I then be
1 x x required to send (all in hex):
"1b 2a 62 8 57 FF 18 18 18 18 18 18 FF" to the printer to print this H character ?
Have I got it right ?
To reply remove the numeral before the @ in my e-mail address
Christoph Merten wrote in message <3AB06DAA.9A4B65A1@gruppenhaus.de>...
>IOL-News schrieb:
>
>> How do I upload the font myself. Did get to see some useful information at
>> the HP site about the EURO symbol.But not sure if it will work in DOS.
>
>You can easily send the symbol as a PCL raster graphic [1b 2a 62 #...# 57
>data]. #...# = number of bytes
>you want to upload as data.
>
>or you can change the character code of a special character: [1b 2a 63 #...#
>45]. #...# = character code.
>then you upload the data for this character code: [1b 28 73 #...# 57 data]
>#...# = number of bytes and
>then the data.
>
>hope this helps
>
>ciao chris
Re: DOS printing ..help please ..
Author: Roy
Date: Mon, 09 Apr 2001 20:16
Date: Mon, 09 Apr 2001 20:16
45 lines
2978 bytes
2978 bytes
I am not very sure of how raster graphics works. I believe the character
is drawn up on a eight
by eight or more raster or perhaps less, e.g.:
128 x x sum(1 to 128) = 256dec = FFh
64 x x 16 + 8 = 24dec = 18h
32 x x
16 x x x x x x x x
8 x x x x x x x x this would then produce a eight
digit number: 256,
4 x x 24,24,24,24,24,24,256 by
adding the relative numbers
2 x x together for each column.
Would I then be
1 x x required to send (all in
hex):
"1b 2a 62 8 57 FF 18 18 18 18 18 18 FF" to the printer to print this H
character ?
Have I got it right ?
To reply remove the numeral before the @ in my e-mail address
Christoph Merten wrote in message <3AB06DAA.9A4B65A1@gruppenhaus.de>...
>IOL-News schrieb:
>
>> How do I upload the font myself. Did get to see some useful information
at
>> the HP site about the EURO symbol.But not sure if it will work in DOS.
>
>You can easily send the symbol as a PCL raster graphic [1b 2a 62 #...# 57
>data]. #...# = number of bytes
>you want to upload as data.
>
>or you can change the character code of a special character: [1b 2a 63
#...#
>45]. #...# = character code.
>then you upload the data for this character code: [1b 28 73 #...# 57 data]
>#...# = number of bytes and
>then the data.
>
>hope this helps
>
>ciao chris
Re: DOS printing ..help please ..
Author: Roy
Date: Wed, 11 Apr 2001 19:45
Date: Wed, 11 Apr 2001 19:45
45 lines
2980 bytes
2980 bytes
I am not very sure of how raster graphics works. I believe the character
is drawn up on a eight
by eight or more raster or perhaps less, e.g.:
128 x x sum(1 to 128) = 256dec = FFh
64 x x 16 + 8 = 24dec = 18h
32 x x
16 x x x x x x x x
8 x x x x x x x x this would then produce a eight
digit number: 256,
4 x x 24,24,24,24,24,24,256 by
adding the relative numbers
2 x x together for each column.
Would I then be
1 x x required to send (all in
hex):
"1b 2a 62 8 57 FF 18 18 18 18 18 18 FF" to the printer to print this H
character ?
Have I got it right ?
To reply remove the numeral before the @ in my e-mail address
Christoph Merten wrote in message <3AB06DAA.9A4B65A1@gruppenhaus.de>...
>IOL-News schrieb:
>
>> How do I upload the font myself. Did get to see some useful information
at
>> the HP site about the EURO symbol.But not sure if it will work in DOS.
>
>You can easily send the symbol as a PCL raster graphic [1b 2a 62 #...# 57
>data]. #...# = number of bytes
>you want to upload as data.
>
>or you can change the character code of a special character: [1b 2a 63
#...#
>45]. #...# = character code.
>then you upload the data for this character code: [1b 28 73 #...# 57 data]
>#...# = number of bytes and
>then the data.
>
>hope this helps
>
>ciao chris
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads