I need Visual Basic 2010 code for using the printer.
I have a form with a checkbox. If the checkbox is checked, then it will open up the page settings dialog box, then open the printer select box to choose a printer, then print document.
It should be able to print to any printer available, not just the default for the current user.
Files will be in pdf format if that matters.