Results 1 to 2 of 2

Thread: How to catch users selection of the printer quality settings?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    How to catch users selection of the printer quality settings?

    For setting a printer I am using such code:

    ' Sets a printer and number of copies to be printed
    Private Function SetPrinter() As Boolean

    SetPrinter = True

    Dim PrintDialog1 As New PrintDialog()
    PrintDialog1.Document = PrintDocument1
    PrintDialog1.AllowPrintToFile = False
    PrintDialog1.AllowSomePages = False

    Dim result As DialogResult = PrintDialog1.ShowDialog()

    If (result = DialogResult.OK) Then
    strPrinterName = PrintDialog1.PrinterSettings.PrinterName
    shtNumberOfCopies = PrintDialog1.PrinterSettings.Copies

    Else
    SetPrinter = False
    End If
    End Function

    From a dialog it is possible to set the quality of printing (draft, normal, …), but I cannot find, how to read the users selection (if he selected) the quality.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    You can get all the properties set by the user like this I guess (haven't tried it myself)....

    Code:
    PrintDocument1.PrinterSettings = PrintDialog1.PrinterSettings

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