j4th
Aug 13th, 2001, 01:17 PM
hi,
i'm new to vb programming, and i was wondering if anyone could help me out. just like the subject says, i want to print all the files of a certain filetype in a folder to a certain printer. my pseudocode thus far looks like this:
'start pseudocode
vars&stuff
input dir
output doc dir
error doc dir
output pdf dir
default printer
desired printer (acrobat distiller)
array for filenames
find default printer
change default to distiller
create array of docs in input dir
open word
for
open doc
print to printer
?
if no error log move to done folder
else move to error folder
?
close doc
end
restore default printer
'end pseudocode
like i said, i'm new at this, so i'm still getting used to vb syntax. anyway, my main problems-- how to change the printer, how to loop (something like "For Each file in folder"?). any help would be appreciated.
-j-
i'm new to vb programming, and i was wondering if anyone could help me out. just like the subject says, i want to print all the files of a certain filetype in a folder to a certain printer. my pseudocode thus far looks like this:
'start pseudocode
vars&stuff
input dir
output doc dir
error doc dir
output pdf dir
default printer
desired printer (acrobat distiller)
array for filenames
find default printer
change default to distiller
create array of docs in input dir
open word
for
open doc
print to printer
?
if no error log move to done folder
else move to error folder
?
close doc
end
restore default printer
'end pseudocode
like i said, i'm new at this, so i'm still getting used to vb syntax. anyway, my main problems-- how to change the printer, how to loop (something like "For Each file in folder"?). any help would be appreciated.
-j-