[code] if pageSetup = nil then
pageSetup = New PrinterSetup
If pageSetup.PageSetupDialog Then
system.DebugLog "page setup dialog"
printerSetupString = pageSetup.SetupString
End If
pageSetup.MaxHorizontalResolution=-1
pageSetup.MaxVerticalResolution=-1
if pagesetup.HorizontalResolution = 72 then
beep
return
end if
if pagesetup.HorizontalResolution <> 300 then
pRatio = pageSetup.HorizontalResolution/72
zRatio = 0.6666666666*pRatio
end if
But Michel… WHERE do you tell it to PRINT the page… you put “Hello World”, and now it is waiting for either more drawing instructions, or to eject/print the page
This is one of those moments when asking the question brings the response : when I dim g becomes nil at the end of the event, and the page is sent to the printer.
With a property that does not happen, I have to set it myself to nil.