SercoSteve
Programmer
Is it possible to send data to a printer defined with an ALIAS?
Regards
Steve
Regards
Steve
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if loRetval then
switch
case strRptDest = "Screen" :
roiOutput.Name = strRptName
If loAnswer then
roiOutput.MasterTable = ":PRIV:ANSWER"
endIf
roiOutput.WinStyle = winStyleDefault +
winStyleMaximize +
winStyleHScroll +
winStyleVScroll
loRetval = reportPreview( roiOutput )
case strRptDest = "Printer" :
rpiOutput.Name = strRptName
rpiOutput.Orient = siOrient
If loAnswer then
rpiOutput.MasterTable = ":PRIV:ANSWER"
endIf
loRetval = reportPrint( rpiOutput )
case strRptDest = "Publish" :
roiOutput.Name = strRptName
If loAnswer then
roiOutput.MasterTable = ":PRIV:ANSWER"
endIf
roiOutput.WinStyle = winStyleDefault + winStyleMinimize
loRetval = reportPublish( roiOutput )
case strRptDest = "File" :
roiOutput.Name = strRptName
If loAnswer then
roiOutput.MasterTable = ":PRIV:ANSWER"
endIf
roiOutput.WinStyle = winStyleDefault + winStyleMinimize
loRetval = reportExportFile( roiOutput )
otherwise :
msgStop( "Can't Run Report",
"Reason: The destination you chose (" +
strRptDest + ") is not currently " +
"supported. Please make sure the " +
"reportHandler() library function is " +
"updated accordingly." )
loRetval = FALSE
endSwitch
endIf