1. Printing Problem

I'm using Win32 lib and have run into a problem with line spacing trying to
print on Avery labels. I've been printing for several years w/o any issues
on plain paper and avery labels on a dot matrix printer. Now with the laser
and avery 3 up labels my inter line spacing won't line up at all. Does anyone
know what the normal number of pixels is between lines? Right now I'm using
5 pixels which lined up good with my old software on another OS.

new topic     » topic index » view message » categorize

2. Re: Printing Problem

George Walters wrote:
> 
> 
> I'm using Win32 lib and have run into a problem with line spacing trying to
> print on Avery labels. I've been printing for several years w/o any issues
> on plain paper and avery labels on a dot matrix printer. Now with the laser
> and avery 3 up labels my inter line spacing won't line up at all. Does anyone
> know what the normal number of pixels is between lines? Right now I'm using
> 5 pixels which lined up good with my old software on another OS.

It is probably due to the laser is using a different font

because dot matrix uses fixed font.

Try setting the laser to use a fixed font then the pixels will have

constant line spacing. 

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

3. Re: Printing Problem

Bernie, I am using a fixed pitch font (courier new). I print one line then
space down 5 pixels (currently) and print the next line and so on. My problem 
is that I don't know what is normally expected between lines.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Printing Problem

George Walters wrote:
> 
> Bernie, I am using a fixed pitch font (courier new). I print one line then
> space down 5 pixels (currently) and print the next line and so on. My problem
> 
> is that I don't know what is normally expected between lines.

line spacing is measured in points (one point is about 1/72nd of an inch).

text set at 12/14 uses a 12 point font with 14 points of line spacing.

You say you are spacing down 5 pixels, I don't understand what you mean.

Is there any way that you can set the line spacing points using the

laser printer commands ?

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

5. Re: Printing Problem

Here is my win32 code.

setPosition(Printer,0,line*(fontSize[2]+5))
                            wPuts(Printer,ptab&tmp)
                            line += 1


I don't know what the "5" is pixels or points but it seemed to fit with the
former OS I was using but now not with the laser printer and Avery labels.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Printing Problem

George Walters wrote:
> 
> Here is my win32 code.
> 
> }}}
<eucode>
>                             setPosition(Printer,0,line*(fontSize[2]+5))
>                             wPuts(Printer,ptab&tmp)
>                             line += 1
> </eucode>
{{{

> 
> I don't know what the "5" is pixels or points but it seemed to fit with the
> former OS I was using but now not with the laser printer and Avery labels.

hello George,

I have made a program that will print 05467 Avery labels.

^These are dot labels. From now on when I speak of dots I mean the labels.

You can change the font.

You can ban change the distance between the dots.

You can change the height of the dots.

Once you get everything set you can print away.

The program uses Win32lib.

I am using a dot matrix prionter and winXP.

Let me know I can email it to you.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

7. Re: Printing Problem

George Walters wrote:
> 
> Here is my win32 code.
> 
> }}}
<eucode>
>                             setPosition(Printer,0,line*(fontSize[2]+5))
>                             wPuts(Printer,ptab&tmp)
>                             line += 1
> </eucode>
{{{

> 
> I don't know what the "5" is pixels or points but it seemed to fit with the
> former OS I was using but now not with the laser printer and Avery labels.

Here is some information from the web on HP's Printer Control Language.

Most laser printers have control functions that can control them.

I think you will need to use them to setup the printer to some known

values because win32lib does not have any easy way to setup the printer.

Maybe Chris can help you; He is now in charge of win32lib.
 


http://www.dragon-it.co.uk/links/hp_pcl_codes.htm

http://printers.necsam.com/public/printers/pclcodes/pcl5hp.htm

Bernie

My files in archive:
WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API 

Can be downloaded here:
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan

new topic     » goto parent     » topic index » view message » categorize

8. Re: Printing Problem

Don,I'd like to look at what you've done. My email address is gwalters at
sc.rr.com

new topic     » goto parent     » topic index » view message » categorize

9. Re: Printing Problem

George Walters wrote:
> 
> Don,I'd like to look at what you've done. My email address is gwalters at
> sc.rr.com

One question George,

Because I really have 2 programs.

Are you printing Text or numbers on your lables?

Don Cole

new topic     » goto parent     » topic index » view message » categorize

10. Re: Printing Problem

Both, the lables are for inventory items and I don't know what they will make
up for part numbers and/or descriptions.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Printing Problem

George Walters wrote:
> 
> Both, the lables are for inventory items and I don't know what they will make
> up for part numbers and/or descriptions.

Sent.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu