>IF !Empty(Maintdef.ExportRR) && Holds the path SELECT 0 > USE Worprint shared > APPEND Blank > REPLACE ri_report with Maintdef.ExportRR,; > ri_Printer with 'H' > > nrec = recno() > GOTO nrec > cString = alltrim(str(nrec)) > cData = goapplication.cDataPath && datapath > cRRW = goapplication.cRRWPath && Report Writer Path > > IF NOT Empty(goapplication.RRWFile) > RRWDir = AllTrim(goapplication.RRWFile) > ELSE > RRWDir = GetIniSt('RRW', 'Defaults', 'ProgDir32', '') > IF Empty(RRWDir) > RRWDir = GetIniSt('RRW', 'Defaults', 'ProgDir', '') > IF Empty(RRWDir) > MESSAGEBOX('System cannot find the RRW program', 64, 'Title') > RRWDir = GetDir('c:\', 'Select RRW Dir ') > ENDIF > ENDIF > ENDIF > > IF NOT Empty(RRWDir) > WAIT Window "Print Linked R&R report: "+ "...Please wait..." NOWAIT > RRWDir = RRWDir + IIF(Right(RRWDir, 1) = '\', '', '\') > goapplication.RRWFile = RRWDir > cRun = RRWDir + 'RRWRun.EXE '+ cData + '\Worprint '+ cString + ' /R'+cRRW + ' /D'+ cData + 'M/' +' /Oc:\Mystatus /WY' > > RUN /N1 &cRun > ENDIF >ENDIF>