Results 1 to 2 of 2

Thread: Printing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Location
    South Africa
    Posts
    22
    Good evening

    Please could someone give me a hand.

    I am printing a form using Form1.PrintForm. My problem is that I need to force it to print in portrait, as this is not always the default on the users PC. I tried Printer.orientation = 1 but that does not work. I do not want to use a print dialog box.

    I also need to know if the default setting was landscape so that I can set it back after I have printed.

    Thanks in advance
    Robin

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    Code:
    Private Sub Command1_Click()
        Dim tmp As String
        tmp = Printer.Orientation
        If tmp <> 1 Then
            Printer.Orientation = 1
            Form1.PrintForm
            Printer.Orientation = tmp
        Else
            Form1.PrintForm
        End If
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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