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


chakri_m16
April 26th, 2001, 11:40 PM
Iam not able to understand Printer.CurrentY and Printer.CurrentX to set values to print text at desired lines.Iam printing using
Printer.Print Text1.Text and
Printer.Print Text2.Text i.e. i want the value of Text1 to appear on line 1 and value of Text2 to appear on line 2 when i give print command.
please help meeee....
chakri_t@rediffmail.com

Cakkie
April 27th, 2001, 02:24 AM
If you do this:

Printer.print text1.Text
Printer.print text2.text



text1.text will be on the first line, text2.text will be on the second line
The CurrentX and CurrentY can be used to position text anywhere you want.
The CurrentX could be used to set a margin, however, this property is reset to 0 every time you use the print command. The value you give to this property is the value in twips (or whatever the scalemode may be), not the number of lines.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook