Access Text Box adds bytes

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?
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top