• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 77
  • Last Modified:

Printing on VB.net

I want to change printer setting by programically in VB.net how I can make this. I search google I find one code this code appear the printer in combo box but not open the settings.
Pls help......
0
ashique k
Asked:
ashique k
1 Solution
 
Peter HutchisonSenior Network Systems SpecialistCommented:
To correct display a Print dialog box with Printer selection and Properties, use the following code:

    Private Sub Print_File_Click(sender As Object, e As EventArgs) Handles Print_File.Click
        Dim popen As New PrintDialog
        popen.ShowDialog()
       ...
popen.PrinterSettings.Copies  = <num of copies>
popen.PrinterSettings.PrintRange = <print range>
popen.PrinterSettings.Duplex= <duplex settings>
...
etc.
End Sub
0
 
hdhondtCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Peter Hutchison (https:#a42446138)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

hdhondt
Experts-Exchange Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now