Results 1 to 2 of 2

Thread: Printing

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Huntsville, AR 72740, USA
    Posts
    90

    Post

    I realize that it should be simple but it's not...
    This is what the code looks like:

    [All of the excess has been cut]
    For Count1=1 to NumCopies
    Printer.Fontsize = 14
    Printer.Print Tab((Printer.Width-TextWidth(WName))/2); WName
    Printer.FontSize = 10
    Printer.Print Tab; " "
    Printer.Print Tab; "Malf: "; Malf
    Printer.Print Tab; "Damage Type: "; DamType
    [Ect., Ect.]

    This then is the problem... The title (WName) should be printed centered at the top. But it's not. Anyone have any ideas why?
    The rest of it works just fine.


    ------------------
    To Seek is to start on the never ending road to wisdom. To fail to seek, the path path to death.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    Do this instead
    For Count1=1 to NumCopies
    Printer.Fontsize = 14
    Printer.CurrentX = (Printer.Width / 2) - (TextWidth(WName) / 2)
    Printer.Print WName

    Printer.FontSize = 10
    Printer.Print Tab; " "
    Printer.Print Tab; "Malf: "; Malf
    Printer.Print Tab; "Damage Type: "; DamType




    ------------------
    Marty

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