Results 1 to 3 of 3

Thread: How to avoid line increment while printing ?

  1. #1

    Thread Starter
    Hyperactive Member Utpal's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai, India
    Posts
    393

    How to avoid line increment while printing ?

    Hi everybody,
    I am trying to print using VBA code. On executing the command :
    Printer.Print "abcd"
    , Printer.CurrentY is incremented by one line automatically. I don't want this line increment to happen, because if I have to print something else on the same line with a different font, I have
    to intialize CurrentY to its previous position. Is there a way to avoid this line increment ?

  2. #2
    Hyperactive Member
    Join Date
    May 2002
    Location
    Chicago
    Posts
    271
    Give this a go:
    Code:
    Private Sub Command1_Click()
      Printer.Print "abcd";
      Printer.Print "efgh"
      Printer.EndDoc
    End Sub
    Sometimes what you're looking for is exactly where you left it.

  3. #3

    Thread Starter
    Hyperactive Member Utpal's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai, India
    Posts
    393
    Thanks ! I'll try.

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