Access Text Box adds bytes

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

I am using a "control font" which sends a command string
directly to the printer. It works well with every
application so far except Access.

If I input the following string into a text box, I get the
expected result (a bar code with the data 123456789012):

1D 6B 49 0F 7B 41 31 32 33 34 35 36 37 38 39 30 31 32

However, if I input additional data, eg.:
1D 6B 49 0F 7B 41 31 32 33 34 35 36 37 38 39 30 31 32 33 34
Access inserts 00 1B 24 9D 00 before reading the last
two bytes of data. The printer receives: 1D 6B 49 0F 7B
41 31 32 33 34 35 36 37 38 39 30 31 32 00 1B 24 9D 00 33 34

Where does the 00 1B 24 9D 00 come from, how do I get rid
of it?
 
Richard said:
I am using a "control font" which sends a command string
directly to the printer. It works well with every
application so far except Access.

If I input the following string into a text box, I get the
expected result (a bar code with the data 123456789012):

1D 6B 49 0F 7B 41 31 32 33 34 35 36 37 38 39 30 31 32

However, if I input additional data, eg.:
1D 6B 49 0F 7B 41 31 32 33 34 35 36 37 38 39 30 31 32 33 34
Access inserts 00 1B 24 9D 00 before reading the last
two bytes of data. The printer receives: 1D 6B 49 0F 7B
41 31 32 33 34 35 36 37 38 39 30 31 32 00 1B 24 9D 00 33 34

Where does the 00 1B 24 9D 00 come from, how do I get rid
of it?

I have no idea what that escape sequence means to your
printer, but you probably exceeded the width of the text box
and Access is trying to wrap the remaining characters to a
second line.

Access reports are graphic data and make a very poor
mechanism for outputting text strings.

Without a better idea of what you're trying to do, I suggest
that you write the charactersb (or hex bytes) directly to a
file or the printer using Open, Write or Put, FreeFile, etc.
 
Back
Top