Ticket #229: smbprint.diff
File smbprint.diff, 1.3 KB (added by , 11 years ago) |
---|
-
smbprint.VRX
131 131 say length(PrintParms) 132 132 if PrintParms <> "" then do 133 133 parse var PrintParms '"'spoolfile'" "'smbprintername'" "'Jobname'" "'pages'" "'JobSize'"' 134 say ' Verzeichnis:"'directory()'"'134 say 'Directory: "'directory()'"' 135 135 say 'Spoolfile: "'spoolfile'"' 136 136 say 'Smbprinter: "'smbprintername'"' 137 say 'Jobname: "'Jobname'"' 138 say 'pages: "'pages'"' 139 say 'JobSize: "'JobSize'"' 137 140 138 141 ok = VRMethod( "Application", "ListPrinters", "printer." ) 139 142 FoundQueue = 0 … … 151 154 152 155 if FoundQueue then do 153 156 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 ) 155 158 ok = SysSleep(3) 156 159 /* ok = VRRedirectStdIO("OFF") */ 157 160 end … … 178 181 window = VRWindow() 179 182 call VRSet window, "Shutdown", 1 180 183 drop window 184 ok = VRRedirectStdIO("OFF") 181 185 return 182 186