Print from Windows Explorer
fellow mvp posted response quoted below question in part similar 1 have asked.
to deal issue of duplexing or not, install 2 copies of printer 1 having properties set duplex , incorporate msgbox construction macro ask if duplexing required , use method in following articles select appropriate printer
controlling printer word vba
part 1: using vba select paper tray
http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=101
controlling printer word vba
part 2: using vba control duplex, color mode , print quality
http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=116
controlling printer word vba
part 3: dealing different paper sizes
http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=132
controlling printer word vba
part 4: getting printer driver details
http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=183
quote
printing in manner described not have ever had cause
don't know when or why behaviour changed - can print
out documents in selected folder using following macro:
http://www.gmayor.com/installing_macro.htm
sub batchprocess()
dim strfilename string
dim strpath string
dim odoc document
dim fdialog filedialog
set fdialog = application.filedialog(msofiledialogfolderpicker)
with fdialog
.title = "select folder , click ok"
.allowmultiselect = false
.initialview = msofiledialogviewlist
if .show <> -1
msgbox "cancelled user", , _
"list folder contents"
exit sub
end if
strpath = fdialog.selecteditems.item(1)
if right(strpath, 1) <> "\" _
strpath = strpath + "\"
end
if documents.count > 0
documents.close savechanges:=wdprompttosavechanges
end if
if left(strpath, 1) = chr(34)
strpath = mid(strpath, 2, len(strpath) - 2)
end if
strfilename = dir$(strpath & "*.doc")
while len(strfilename) <> 0
set odoc = documents.open(strpath & strfilename)
odoc.printout
odoc.close savechanges:=wdsavechanges
strfilename = dir$()
wend
end sub
-- <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
graham mayor - word mvp
my web site www.gmayor.com
word mvp web site http://word.mvps.org
unquote
note: if &n bsp; appears in above code, delete it.
-- hope helps.
please reply newsgroup unless wish avail of
services on paid consulting basis.
doug robbins - word mvp, posted via nntp bridge
"bakinnan" wrote in message news:242fe58c-fa5a-4108-985f-d46722b621ec@communitybridge.codeplex.com...
when try print multiple documents through windows explorer, after install installing rtm version of office 2010, documents no longer print in order selected. additionally, used able to open 1 document in explorer window, set printing properties (i.e. duplex), save it, select multiple documents , print. when doing printing properties carry on documents had selected, no longer seems case. has else come across these issues or know of fix/work around these issues?
doug robbins - word mvp dkr[atsymbol]mvps[dot]org
Microsoft Office > Word IT Pro Discussions
Comments
Post a Comment