borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (printing polygone and fill it with a color)Next Topic (printing text boxes,etc) New Topic New Poll Post Reply
AndreaVB Forum : Printing : current Y and current Y locations
Poster Message
misterZZZ
Level: Guest


icon current Y and current Y locations

Hi all - Is there a easy way to find out where something will print when using the Printer.Current Y = nnnnn and Printer.Current X = nnnnn
some sort of a location chart or something ?  

MZ

01-10-2002 at 02:48 PM
| Quote Reply
Filbert
Level: Guest

icon Re: current Y and current Y locations

the print object starts out with x,y at 0,0.
if you want to print something elsewhere, you have to add the new coordinates to the starting x,y.  Like,
New_X = printer.currentX + 500
New_Y = printer.currentY + 500

Printer.Print "I'm printing at 500 twps over and 500 twps down"

Printer.Print "I'm gonna print on the next line"

Printer.EndDoc

and so on...

Also,when you use the VB graphics methods, the Current X and Current Y co-ords start where that methood left you.

I have a routine that shows alot of this stuff if you want it.

21-12-2002 at 11:46 PM
| Quote Reply
AndreaVB Forum : Printing : current Y and current Y locations
Previous Topic (printing polygone and fill it with a color)Next Topic (printing text boxes,etc) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder