PC Review


Reply
Thread Tools Rate Thread

Batch print not working

 
 
Tony
Guest
Posts: n/a
 
      3rd Jun 2010

Hi. I used to be able to print a considerable (about 100) number of separate
doc files by selecting them all and right-clicking and selecting print, but
this has stopped working. When I do that now, the icon changes to an
hourglass for about 3 seconds but then it goes back to an arrow and nothing
happens.

Nothing has changed with the computer or the printer. I can print single
doc files fine. Any ideas why this happened and any ideas of how to fix it?
Or, I guess, any recommendations for a batch print program?


 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      4th Jun 2010

Printing in the manner described is not something I have ever had cause to
do so I don't know when or why the behaviour changed - however you can print
out all the documents in a selected folder using the following macro:

http://www.gmayor.com/installing_macro.htm

Sub BatchProcess()
Dim strFilename As String
Dim strPath As String
Dim oDoc As Document
Dim fDialog As FileDialog
Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)

With fDialog
.Title = "Select folder and click OK"
.AllowMultiSelect = False
.InitialView = msoFileDialogViewList
If .Show <> -1 Then
MsgBox "Cancelled By User", , _
"List Folder Contents"
Exit Sub
End If
strPath = fDialog.SelectedItems.Item(1)
If Right(strPath, 1) <> "\" _
Then strPath = strPath + "\"
End With

If Documents.Count > 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If
If Left(strPath, 1) = Chr(34) Then
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
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


"Tony" <(E-Mail Removed)> wrote in message
news89854F6-9CA0-44E7-B0C1-(E-Mail Removed)...
> Hi. I used to be able to print a considerable (about 100) number of
> separate
> doc files by selecting them all and right-clicking and selecting print,
> but
> this has stopped working. When I do that now, the icon changes to an
> hourglass for about 3 seconds but then it goes back to an arrow and
> nothing
> happens.
>
> Nothing has changed with the computer or the printer. I can print single
> doc files fine. Any ideas why this happened and any ideas of how to fix
> it?
> Or, I guess, any recommendations for a batch print program?
>
>



 
Reply With Quote
 
Tony
Guest
Posts: n/a
 
      4th Jun 2010

Thanks, Graham.

"Graham Mayor" wrote:

> Printing in the manner described is not something I have ever had cause to
> do so I don't know when or why the behaviour changed - however you can print
> out all the documents in a selected folder using the following macro:
>
> http://www.gmayor.com/installing_macro.htm
>
> Sub BatchProcess()
> Dim strFilename As String
> Dim strPath As String
> Dim oDoc As Document
> Dim fDialog As FileDialog
> Set fDialog = Application.FileDialog(msoFileDialogFolderPicker)
>
> With fDialog
> .Title = "Select folder and click OK"
> .AllowMultiSelect = False
> .InitialView = msoFileDialogViewList
> If .Show <> -1 Then
> MsgBox "Cancelled By User", , _
> "List Folder Contents"
> Exit Sub
> End If
> strPath = fDialog.SelectedItems.Item(1)
> If Right(strPath, 1) <> "\" _
> Then strPath = strPath + "\"
> End With
>
> If Documents.Count > 0 Then
> Documents.Close SaveChanges:=wdPromptToSaveChanges
> End If
> If Left(strPath, 1) = Chr(34) Then
> 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
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
> "Tony" <(E-Mail Removed)> wrote in message
> news89854F6-9CA0-44E7-B0C1-(E-Mail Removed)...
> > Hi. I used to be able to print a considerable (about 100) number of
> > separate
> > doc files by selecting them all and right-clicking and selecting print,
> > but
> > this has stopped working. When I do that now, the icon changes to an
> > hourglass for about 3 seconds but then it goes back to an arrow and
> > nothing
> > happens.
> >
> > Nothing has changed with the computer or the printer. I can print single
> > doc files fine. Any ideas why this happened and any ideas of how to fix
> > it?
> > Or, I guess, any recommendations for a batch print program?
> >
> >

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PRINT MULTIPLE DOCUMENTS FROM WORD IN ONE PRINT BATCH GRMREAPER81 Microsoft Word Document Management 1 26th Feb 2010 07:03 AM
Batch Print =?Utf-8?B?UDFheWJveQ==?= Microsoft Dot NET 1 19th Jul 2007 05:12 PM
Batch print to PDF? =?Utf-8?B?Q29sbGVlbiBN?= Microsoft Word Document Management 5 21st Sep 2006 12:18 AM
How do I print more than one Word document (batch print)? =?Utf-8?B?U3BpdGZpcmUgVklJ?= Microsoft Word Document Management 1 12th Sep 2006 05:15 PM
Batch Print Gave Microsoft ASP .NET 2 16th May 2006 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 PM.