CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Printing

  1. #1
    Join Date
    Apr 2001
    Location
    Andhra Pradesh,INDIA
    Posts
    11

    Printing

    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....
    [email protected]


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Printing

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured