Results 1 to 2 of 2

Thread: // ? \\

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    printer object

    Printer.Print

    All I'm printing are first name last name birthdate
    ie
    Jamie Gartner 2000/07/02
    William Tell 1896/20/06
    May West 1890/21/01

    I want it to align in 3 columns..can't remember the syntax
    tab(bla bla) I think or
    maybe I should use spacers..

    Jamie Gartner 2000/07/02
    William Tell bla bal
    etc etc etc

    anyone?
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    If you want each row to be aligned then use the CurrentX property of the Printer Object, i.e.
    Code:
    Private Sub Command1_Click()
        Dim nCount As Long
        Dim nCol As Long
        
        For nCount = 1 To 10
            For nCol = 1 To 5
                Printer.CurrentX = Printer.ScaleLeft + ((Printer.ScaleWidth / 5) * (nCol - 1))
                Printer.Print "Column" & nCol;
            Next
            Printer.Print
        Next
        Printer.EndDoc
        
    End Sub

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