Ticket #229: smbprint.diff

File smbprint.diff, 1.3 KB (added by abwillis, 11 years ago)
  • smbprint.VRX

     
    131131    say length(PrintParms)
    132132    if PrintParms <> "" then do
    133133        parse var PrintParms '"'spoolfile'" "'smbprintername'" "'Jobname'" "'pages'" "'JobSize'"'
    134         say 'Verzeichnis: "'directory()'"'
     134        say 'Directory:  "'directory()'"'
    135135        say 'Spoolfile:   "'spoolfile'"'
    136136        say 'Smbprinter:  "'smbprintername'"'
     137        say 'Jobname:     "'Jobname'"'
     138        say 'pages:       "'pages'"'
     139        say 'JobSize:     "'JobSize'"'
    137140
    138141        ok = VRMethod( "Application", "ListPrinters", "printer." )
    139142        FoundQueue = 0
     
    151154
    152155        if FoundQueue then do
    153156            ok = VRset("DT_Job","Caption", 'Print "'Jobname'" ('Pages', 'JobSize' bytes) to "'PName'"')
    154             ok = VRPrintFile( smbprintername, directory'\'spoolfile, , JobName )
     157            ok = VRPrintFile( smbprintername, spoolfile, , JobName )
    155158            ok = SysSleep(3)
    156159            /* ok = VRRedirectStdIO("OFF") */
    157160        end
     
    178181    window = VRWindow()
    179182    call VRSet window, "Shutdown", 1
    180183    drop window
     184    ok = VRRedirectStdIO("OFF")
    181185return
    182186