/////////////////////////////////////////////////////////////////////
// MINIPRINT PRINT COMMANDS
/////////////////////////////////////////////////////////////////////
#xcommand START PRINTDOC [ NAME <cname> ] ;
=> ;
_HMG_PRINTER_SetJobName( <cname> ) ;;
IIF( _HMG_PRINTER_Preview, ;
( _HMG_PRINTER_PageCount := 0, ;
_HMG_PRINTER_hDC_Bak := _HMG_PRINTER_hDC ), ;
_HMG_PRINTER_StartDoc( _HMG_PRINTER_hDC, _OOHG_PRINTER_DocName ) )
Declares the start of a printer document.
#xcommand START PRINTPAGE ;
=> ;
IIF( _HMG_PRINTER_Preview, ;
( _HMG_PRINTER_hDC := _HMG_PRINTER_StartPage_Preview( ;
_HMG_PRINTER_hDC_Bak, ;
( GetTempFolder() + ;
'\' + ;
_HMG_PRINTER_TimeStamp + ;
"_HMG_print_preview_" + ;
StrZero( ++ _HMG_PRINTER_PageCount, 6, 0 ) + ;
".Emf" ) ) ), ;
_HMG_PRINTER_StartPage( _HMG_PRINTER_hDC ) )
Declares the start of a page inside a printer document.
#xcommand END PRINTPAGE ;
=> ;
IIF( _HMG_PRINTER_Preview, ;
_HMG_PRINTER_EndPage_Preview( _HMG_PRINTER_hDC ), ;
_HMG_PRINTER_EndPage( _HMG_PRINTER_hDC ) )
Declares the end of a page inside a printer document.
#xcommand END PRINTDOC ;
=> ;
IIF( _HMG_PRINTER_Preview, ;
_HMG_PRINTER_ShowPreview(), ;
_HMG_PRINTER_EndDoc( _HMG_PRINTER_hDC ) )
Declares the end of a printer document.
#xcommand ABORT PRINTDOC ;
=> ;
_HMG_PRINTER_AbortDoc( _HMG_PRINTER_hDC )
Aborts the printer document.