Re: Educate me on Printing
- Posted by Andy Drummond <andy at kest?eltele.?om> Oct 18, 2007
- 506 views
George Walters wrote: > > > I thought I new how to print in windows using Win32 but apparently I don't > know...or I'm missing the point all together. > > I've been using this > > fontSize = getFontSize( Printer ) -- get the font metrics > > and spacing down the page like this > > line += 1 > setPosition(Printer,0,line*fontSize[2]) > wPuts(Printer,"stuff") > > where line is the line number down the page > > The problem is I get different spacing from printer to printer as you go down. > the page. The laser does one thing and the inkjet is different. So I can't > fill > in forms consistently (like labels for addresses etc) > > Can someone explain how to make a printer output the same from one to the > other? George, I used to find printing a real pain. If you look at the archive you will find a library called grprint.ew which I produced to get around this. You specify locations of printing in inches or millimetres as you prefer, and it takes care of printer characteristics. You can print lines and text at various angles etc etc - download it and you will see. It includes a demo routine at the end so you can see how to drive it. I think this will meet your needs... Andy Drummond