Hi
I searched the previous posts and while I found a few interesting things, I didn't find an answer to this:
The picture prints with the same resolution (Normal) no matter which setting I choose in the ShowPrinter/Printer Properties Dialog boxes! (My printer prints at up to 1440 and obviously prints at 720 or higher resolutions with Word or Photoshop or even Paint).
VB does not seem to recognize that the properties have been changed.
I am trying to get the printer properties to take effect after changing them in the Properties dialog when using the following code:
Option Explicit
'Form has a Picture box (with a picture) and a Command button
Private Sub Command1_Click()
' Set Printer = Printers(0) '(no effect)
CommonDialog1.PrinterDefault = True
CommonDialog1.CancelError = True
CommonDialog1.Flags = cdlPDPrintSetup
On Error Resume Next
CommonDialog1.ShowPrinter
If Err Then Exit Sub
' Printer.PrintQuality = 720 '(no effect - will not work even without the dialog box)
Printer.PaintPicture Picture1.Image, 300, 300
Printer.EndDoc
End Sub
I searched the previous posts and while I found a few interesting things, I didn't find an answer to this:
The picture prints with the same resolution (Normal) no matter which setting I choose in the ShowPrinter/Printer Properties Dialog boxes! (My printer prints at up to 1440 and obviously prints at 720 or higher resolutions with Word or Photoshop or even Paint).
VB does not seem to recognize that the properties have been changed.
I am trying to get the printer properties to take effect after changing them in the Properties dialog when using the following code:
Option Explicit
'Form has a Picture box (with a picture) and a Command button
Private Sub Command1_Click()
' Set Printer = Printers(0) '(no effect)
CommonDialog1.PrinterDefault = True
CommonDialog1.CancelError = True
CommonDialog1.Flags = cdlPDPrintSetup
On Error Resume Next
CommonDialog1.ShowPrinter
If Err Then Exit Sub
' Printer.PrintQuality = 720 '(no effect - will not work even without the dialog box)
Printer.PaintPicture Picture1.Image, 300, 300
Printer.EndDoc
End Sub