This code below prints the dialog (obj is the parameter)...
In deskjet printer (300 dpi) works fine, but in laser printer (600 dpi) it´s not OK, the image on the paper is too small
It´s possible fixed this ?
- Code: Select all Expand view RUN
FUNCTION Printer_Dlg(obj)
LOCAL oPrinter
oPrinter := PrintBegin(obj:cTitle,.T.,.F.,NIL,.T.)
SysRefresh()
IF EMPTY( oPrinter:hDC )
RETURN
ENDIF
oPrinter:SetLandscape()
oPrinter:StartPage()
SysRefresh()
obj:Print(oPrinter)
oPrinter:EndPage()
ENDPRINT
RETURN
regards