General information
Category:
The Mere Mortals Framework
Scott,
The following shows the code in a 'Print' button on a work order form in one on my MM applications.
***********************************************************************
* First save the work order and then print if successfully saved
local lnRetVal
if thisform.isnewandempty()
= MESSAGEBOX("Nothing to Print! " , ;
MB_OK + MB_ICONINFORMATION, "Application Message")
RETURN 1
ENDIF
IF thisform.ischanged()
lnRetVal = thisform.asktosave()
IF lnRetVal <> FILE_OK
RETURN 1
ENDIF
ENDIF
* Set the parameter for the view which is used by the report
vp_workordid = v_workord.workordid
*REPORT FORM worpt preview
report form worpt to printer prompt noconsole
***********************************************************************
HTH!!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only