After rereading the above post, I figured you will need this program also<br><br>*/***************************************************************************<br>*/Program : Function ErrPrnw<br>*/System :<br>*/Purpose : This Function Tests The Printer For Being On Line<br>*/Syntax : ErrPrn(SPO) or on error L_test = errprnw()<br>*/Return : Logical .t. Printer is Ready .f. Printer is not ready<br>*/Parameter : Logical - SPO - Set Printer On and Console off<br>*/Defaults : SPO = .f.<br>*/Requires : Nothing<br>*/Changes : Nothing<br>*/Calls : Nothing<br>*/Calls :<br>*/Version : 1.0<br>*/Dated : 7/09/91<br>*/Written By: David W. Grewe<br>*/***************************************************************************<br>*& Error Handling<br>*/***************************************************************************<br>*/ Record Of Change<br>*/<br>*/***************************************************************************<br>parameter P_SPO<br>private P_SPO<br>if parameters() < 1 .or. type("P_Spo"

# "L"<br> P_SPO = .f.<br>endif<br>**************<br>L_ESC=set("escape"

<br>L_CUR=set("cursor"

<br>L_PRN=set("printer"

<br>L_CON=set("console"

<br>set cursor off<br>set console off<br>set escape off<br><br>L_ERRPRN = .f.<br>do while .t.<br> if sys(13) # "OFFLINE"<br> if P_SPO = .t.<br> set device to print<br> set printer on<br> endif<br> L_ERRPRN = .t.<br> exit<br> endif<br> **<br> define window ERRORS from 0,0 to 14,60 font "FOXFONT",9 system ;<br> title "Printer Error Message" ;<br> footer "Press Any Key To Retry, or Esc To Exit" ;<br> noclose nofloat nogrow nozoom nomdi shadow color scheme 7<br> activate window ERRORS noshow<br> move window ERRORS center<br> @ 1,10 say "There Is Something Wrong With The Printer."<br> @ 2,10 say " There Are Several Things To Check"<br> @ 4,10 say " 1. The Printer Is Not On Line."<br> @ 5,10 say " 2. The Printer Is Out Of Paper."<br> @ 6,10 say " 3. There Is A Cable I/O Problem."<br> @ 7,10 say " 4. The Printer Has Timed Out."<br> @ 8,10 say " 5. The Printer Is Busy."<br> @ 9,10 say " 6. Not Capture To Network Printer."<br> @ 11,10 say "Please Check The Printer."<br> activate window ERRORS<br> wait "" to NOTHING<br> deactivate window ERRORS<br> release window ERRORS<br> if lastkey() = 27<br> exit<br> endif<br>enddo<br><br>set escape &L_ESC<br>set cursor &L_CUR<br>set printer &L_PRN<br>set console &L_CON<br><br>release P_SPO<br>return L_ERRPRN<br> <p>David W. Grewe<br><a href=mailto

ave@internationalbid.net>Dave@internationalbid.net</a><br><a href= > </a><br>