1. Printing Problem
- Posted by George Walters <gwalters at sc?r?.com> Oct 12, 2007
- 675 views
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.
2. Re: Printing Problem
- Posted by Bernie Ryan <xotron at bluef?o?.com> Oct 12, 2007
- 620 views
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
3. Re: Printing Problem
- Posted by George Walters <gwalters at sc.rr.??m> Oct 12, 2007
- 632 views
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.
4. Re: Printing Problem
- Posted by Bernie Ryan <xotron at bluef??g.com> Oct 12, 2007
- 628 views
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
5. Re: Printing Problem
- Posted by George Walters <gwalters at s?.rr.?om> Oct 12, 2007
- 639 views
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.
6. Re: Printing Problem
- Posted by don cole <doncole at pacbe?l.ne?> Oct 12, 2007
- 664 views
- Last edited Oct 13, 2007
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
7. Re: Printing Problem
- Posted by Bernie Ryan <xotron at blue?ro?.com> Oct 12, 2007
- 631 views
- Last edited Oct 13, 2007
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
8. Re: Printing Problem
- Posted by George Walters <gwalters at sc.rr?co?> Oct 13, 2007
- 611 views
Don,I'd like to look at what you've done. My email address is gwalters at sc.rr.com
9. Re: Printing Problem
- Posted by don cole <doncole at pacbell.ne?> Oct 13, 2007
- 618 views
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
10. Re: Printing Problem
- Posted by George Walters <gwalters at s?.rr?com> Oct 13, 2007
- 654 views
Both, the lables are for inventory items and I don't know what they will make up for part numbers and/or descriptions.
11. Re: Printing Problem
- Posted by don cole <doncole at ?acbell?net> Oct 13, 2007
- 637 views
- Last edited Oct 14, 2007
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