Changeset 982 for branches/guitools-2.0/smbprint
- Timestamp:
- Oct 6, 2016, 4:22:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/smbprint/smbprint.VRX
r981 r982 131 131 PrintParms = VRGet("Application","Commandline") 132 132 spooldir = directory() 133 if debug = 1 then say "Printparms='"Printparms"'"134 if debug = 1 then saylength(PrintParms)133 if debug = 1 then say 'Printparms: "'Printparms'"' 134 if debug = 1 then say 'Length : 'length(PrintParms) 135 135 if PrintParms <> "" then do 136 136 parse var PrintParms '"'spoolfile'" "'smbprintername'" "'Jobname'" "'pages'" "'JobSize'"' 137 if debug = 1 then say ' Verzeichnis:"'spooldir'"'138 if debug = 1 then say 'Spoolfile: 139 if debug = 1 then say 'Smbprinter: 137 if debug = 1 then say 'Directory: "'spooldir'"' 138 if debug = 1 then say 'Spoolfile: "'spoolfile'"' 139 if debug = 1 then say 'Smbprinter: "'smbprintername'"' 140 140 141 141 ok = VRMethod( "Application", "ListPrinters", "printer." ) … … 145 145 if debug = 1 then say printer.i 146 146 parse value printer.i with PName';'PQueue';'Rest 147 if debug = 1 then say PName'<-->'PQueue147 if debug = 1 then say 'Queue: 'PName'<-->'PQueue 148 148 if translate(PQueue) = translate(smbprintername) then do 149 149 FoundQueue = 1 … … 156 156 ok = VRset("DT_Job","Caption", 'Print "'Jobname'" ('Pages', 'JobSize' bytes) to "'PName'"') 157 157 ok = VRPrintFile( smbprintername, spooldir'\'spoolfile, , JobName ) 158 if debug = 1 then say " ->"smbprintername", "spooldir"\"spoolfile", , "JobName158 if debug = 1 then say " ->"smbprintername", "spooldir"\"spoolfile", , "JobName 159 159 ok = SysSleep(10) 160 160 if debug = 1 then ok = VRRedirectStdIO("OFF") … … 166 166 call _ShowMsg 167 167 end 168 /* ok = SysFileDelete(Spoolfile) */168 ok = SysFileDelete(Spoolfile) 169 169 end 170 170 else do
Note:
See TracChangeset
for help on using the changeset viewer.