Results 1 to 2 of 2

Thread: Printing Problem

  1. #1

    Thread Starter
    Member JPRoy392's Avatar
    Join Date
    Aug 2000
    Posts
    50

    Question

    I am trying to print out multiple items from a Textbox that has the muliline property = true. I also have vertical scroll bars in case the user has lots of stuff to enter.

    The Problem is when this textbox is asked to print its contents, it will place the first item on the correct place on the margin. The problem is the second, third, fourth.... items get pushed all the way to the left side of the page. Here is my code:

    Code:
    Dim sI as String
    
       If txtStuff.Text <> "" Then
            sI = txtStuff.Text
            Printer.CurrentX = HorizontalMargin + 0.5
            Printer.Print sI
       End If
    The results are (with more than one item):
    Code:
    Results:
            Blue
    Black
    Red
    Blue is correct, but Black and Red are wrong. Thank You for the help.
    Jim

    "...head is all empty and I don't care..."

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Printing with margins is never easy in VB.

    Check out this thread
    Iain, thats with an i by the way!

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