Click to See Complete Forum and Search --> : Need Help Printing


Troy
November 8th, 1998, 06:22 PM
I am having trouble with printing in VB. My client needs me to print data on a pre-printed form (they put the form into the printer, and my program needs to print the data in the correct place). I thought this should be a simple thing. However, I am getting a slightly different printout on almost every printer. As a result, the data does not line up properly in the area it is supposed to. I tried the PrintForm method, but the quality was not good enough. I am trying to use the Printer object now, and use code like the following:

Printer.CurrentX = 500

Printer.CurrentY = 1000

Printer.Print "Print Data"


I think I know what is wrong, but can't find out how to fix it. Each printer has a different "unprintable" area, somewhere around .25" I think VB is saying go in 500 twips and down 1000 twips from the unprintable area margin, and not from the edge of the page. How can I fix this? Or is there another way to do this that works? Thanks for any help you can provide.