How to set print font scaling for barcode print?

S

sam

can someone show how to change print font width & heigh scaling? I am
writing a code for barcode printing on smaller label. I do not want change
font size, because this may cause the bar code reader could work well is bar
code is too small, I want to keep same font heigh but smaller font width? is
it possible to do that?
 
P

PopeDarren

I think I understand... I don't know if this will work (I HATE
PRINTERS). Have you tried using a print css:

<link rel="stylesheet" href="print.css" type="text/css" media="print" /
And change your letter-spacing for that class like so:

..myClass
{
letter-spacing: -2px;
}


That won't make the letters thinner, but it will minimize the space
between them.
 
P

PopeDarren

That's assuming that you are creating a web application, of course...
which you're probably not doing. Sorry, I probably didn't help.
 
T

Thomas Lutz

There is no easy way to change the height of a font independently of
the width. For barcodes, it is extremely important that the widths of
the bars and spaces in the barcode be printed precisely because it is
the widths of the bars and spaces in the barcode that encode the data.
If you change the font size of a barcode font, you will almost
certainly cause the barcode to be either difficult or impossible to
read.
If you want to be able to adjust the height of the bars independently
of the width, then you need to use a different approach. The best way
to do things is to use a barcode ActiveX Control that generates a
vector graphic image of the barcodes instead of a using a barcode
font. ActiveX controls that produce images of bar codes allow you to
control the height of the bars independently of the width of the bars.
The best barcode ActiveX on the market is available from TALtech at
the following URL:
http://www.taltech.com/products/activex_barcodes.html

If you are working with vb.net then you should not have any problems
using a barcode ActiveX control. There is a fully functional demo
version of the TALtech barcode ActiveX control on the above web page.
You can also find source code samples that show how to use it at the
following page:
http://www.taltech.com/support/bcax/CodeSamples.htm
 

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