PRINTER.ZOOM have no effect

User avatar
sal21
PlatinumLounger
Posts: 4602
Joined: 26 Apr 2010, 17:36

PRINTER.ZOOM have no effect

Post by sal21 »

Why the zoom setting not have effetct!!!

My code:

Private Sub Command1_Click()

Me.Text1.SetFocus

Printer.Font.Size = 8
Printer.Font.Name = "Consolas"
Printer.Zoom = 80

For I = 0 To Me.List1.ListCount
Printer.Print " " & Me.List1.List(I)
Next

Printer.EndDoc

Me.Text1.SetFocus

End Sub
Last edited by HansV on 06 Oct 2024, 09:50, edited 1 time in total.
Reason: Corrected PèRINTER to PRINTER

User avatar
SpeakEasy
5StarLounger
Posts: 753
Joined: 27 Jun 2021, 10:46

Re: PRINTER.ZOOM have no effect

Post by SpeakEasy »

The challenge here is that the print driver may not support the zoom property. And this applies to many of the Printer object settings, not just zoom. As Microsoft themselves say:
Microsoft wrote:Note The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect,

User avatar
sal21
PlatinumLounger
Posts: 4602
Joined: 26 Apr 2010, 17:36

Re: PRINTER.ZOOM have no effect

Post by sal21 »

:grin: :sad: :thankyou:
SpeakEasy wrote:
06 Oct 2024, 12:59
The challenge here is that the print driver may not support the zoom property. And this applies to many of the Printer object settings, not just zoom. As Microsoft themselves say:
Microsoft wrote:Note The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect,
:thankyou:

User avatar
SpeakEasy
5StarLounger
Posts: 753
Joined: 27 Jun 2021, 10:46

Re: PRINTER.ZOOM have no effect

Post by SpeakEasy »

You could always write your own printer output scaling code ...