Re: Printing to only USB printer
- From: "Mike Williams" <Mike@xxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 20:59:01 +0100
"F L A S H" <flash@xxxxxxxxx> wrote in message
news:lXf%e.99080$Ph4.3113802@xxxxxxxxxxxxxxxxxxxxxxxxxx
> This seems to work ok but my only other question is will Print_Line
> be left aligned starting from the last space after Print_ProConst
Yes. A space character in Arial point size15 will be printed immedately
after your string constant ("pro:" in your example) and the width of that
space will be constant on all printers (apart from a tiny difference due to
the different resolutions of different printers, which will be so small that
you can safely ignore it).
> and will this stay consistent on multiple printers and operating systems?
Yes. However, the actual starting "x" position of the first character of
your string constant will be different on different printers (due to the
unprintable margins that we have already discussed) and so the physical
position (x coordinate) of the entire printed line is likely to be different
on different printers (although as far as the x coordinate is concerned they
are fairly consistent between one printer and the next). If you want to fix
this so that the x position of the line of text is exactly the same on all
printers then you need to initialise the page (using the PrinterSetOrigin
code that I ahve previously posted, for example).
> Alsowill the vertical CurrentY be the same for both Print_Line
> and PrintProConst?
Yes, although you have to understand that coordinates of a font character
specify the "topleft corner" of that character, and so if you are using
different font sizes on the same line (as you are doing) it is the position
of the top edge of the character that will be the same, not the bottom. Have
a read through the stuff that Jerry and I have already posted (in this
thread an others recently) which explains all about font positioning,
especially with regard to having different fonts on the same line and with
regard to font descenders.
Also, the actual physical y coordinate is likely to be different on
different printer (unless you use my PrinterSetOrigin code or something
similar).
By the way, I've never used a label printer myself so there may be other
things to consider that I don't yet know about. For example, I imagine that
many label printers actually print on a "rolling ***" of labels (rather
than pulling individual labels in one at a time as typical A4 and Letter
page printers do). If that is the case then it is quite likely that you will
need to make some hardware or software adjustments to your printer in order
to get it to do exactly what you want. For example, the old fashioned impact
dot matric printers (when they were set up to use paper rolls rather than
individual sheets) had all sorts of setting you could alter, including
things like "skip perforations" and all sorts of things. Check out the
manual for your label printer and it will probably tell you all about this
stuff.
Mike
.
- References:
- Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: J French
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: J French
- Re: Printing to only USB printer
- From: F L A S H
- Re: Printing to only USB printer
- From: Mike Williams
- Re: Printing to only USB printer
- From: F L A S H
- Printing to only USB printer
- Prev by Date: Re: simple way to clean out array
- Next by Date: Re: simple way to clean out array
- Previous by thread: Re: Printing to only USB printer
- Next by thread: Re: Printing to only USB printer
- Index(es):