How can I add printer selection dialog, and how can I control margins of a page? I tried so many things in code (printdocument codes works but they don't show my form) but they did not work. I'm using this code to print form:
With Me.PrintForm1
.PrintAction = Printing.PrintAction.PrintToPreview
.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)
End With
Me.Close()
It's working but, it does not asks for printer selection and I can't control margins.
Thanks
I found the solution finally, here it is:
Thanks anyway.