Results 1 to 8 of 8

Thread: Printer.CurrentX being reset to 0 <RESOLVED>

Threaded View

  1. #1

    Thread Starter
    Addicted Member run_GMoney's Avatar
    Join Date
    May 2002
    Location
    Detroit
    Posts
    186

    Printer.CurrentX being reset to 0 <RESOLVED>

    Can anyone tell me a reason why Printer.CurrentX is being reset during this loop?
    VB Code:
    1. Printer.CurrentX = 1000
    2. Printer.CurrentY = 10800
    3. For i = 13 To 19
    4.     Printer.Print Label8(i).Caption
    5.     Printer.CurrentX = Printer.CurrentX + 900
    6.     Printer.CurrentY = 10800
    7. Next

    If I put a stop up on the first line of the loop (Printer.Print Label8(i).Caption) and query the machine for the value of Printer.CurrentX it returns 1000, like it should. However when I step to the next line (Printer.CurrentX = Printer.CurrentX + 900)and query again, the value has been reset to 0. Anyone know why? It's quite annoying because everything seems correct in my code. Thanks
    Last edited by run_GMoney; Jan 28th, 2003 at 12:03 PM.
    Place Your VBForums Ad Here

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