Need help with printer resouliton

I am trying to print using the resouliton of my printer a cannon ink jet. Linux debian xojo 2026 r2

The best I can do with this is 72 dpi, and that is like using a dull crayon :slight_smile:

Var g As Graphics
Var ps As New PrinterSetup
ps.Landscape = true

If ps.ShowPageSetupDialog Then
  MessageBox(ps.VerticalResolution.ToString)    '  returns 72
  'ps.HorizontalResolution  = -1               gives an error  nil
  
  g = ps.ShowPrinterDialog
  
  
  g.DrawPicture(p, 0, 0)
End If

this is also set I have tried - 1 and also = 300 … same results

Looks like you are setting a global ps property, and writing some useless comments as code?
Then, in some other place, shadowing ps at runtime?

I have Finally figured it out

Set the resolution for the picture … not the printer