Results 1 to 2 of 2

Thread: Printer.Line Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    Printer.Line Question

    Hi Everyone,

    Why is this not working correctly? I am trying to print a line that is as long as a string of text, but everytime I print the line is about 2/3 the length of the string. I would appreciate any help. Thanks.

    Code:
    Printer.Line (800, Printer.CurrentY)-(Printer.TextWidth("Attn:" & " " & varMembers(14, Index) & Space(3) & "Acct #:" & " " & varMembers(7, Index)), Printer.CurrentY)

  2. #2
    jim mcnamara
    Guest
    Oh. I finally get it.

    Use the Printer.Textwidth method to see how long your text is, then build a row of dashes (or whatever) until it matches the textwidth parameter (your primary form also has .TextWidth so
    if you are using the same font both places, you can do testing on your form method.)

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