Results 1 to 4 of 4

Thread: Printing a form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    I have a form I want to print..
    Now how can I print it like
    "LandScape"?

    Thanks!

  2. #2

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Talking Im new to this

    That doesnt help.. Ive never
    printed before with VB.

    How do I tell it to print the
    form ?

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Code:
    Private Sub Command1_Click()
    
    Printer.Orientation = vbPRORLandscape
    
    ' If there are controls on the form that you DON'T want to print
    ' then do this, and then make it visible after the form is printed.
    List1.Visible = False
    
    ' Print the current form. If this were being done from a module or
    ' some other form then you would do   Form1.PrintForm   instead
    Me.PrintForm
    
    List1.Visible = True
    
    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