Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print reports in MM from a command button on a fo
Message
 
To
26/04/2004 01:04:57
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00898043
Message ID:
00898366
Views:
12
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
Map
View

Click here to load this message in the networking platform