OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to print all open Writer files without individual calls?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
Carsten B
General User
General User


Joined: 31 Mar 2007
Posts: 6

PostPosted: Thu Jan 31, 2008 12:51 pm    Post subject: How to print all open Writer files without individual calls? Reply with quote

It is possible to print all open Writer files "in one fell swoop"?
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Thu Jan 31, 2008 1:38 pm    Post subject: Reply with quote

No
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Thu Jan 31, 2008 2:53 pm    Post subject: Reply with quote

I have never tired it, but can you save each as a PRN file, then use a DOS command to print them all? Just ruminating, since I have no idea. I might try it myself sometime though.

David.
Back to top
View user's profile Send private message
huwg
Super User
Super User


Joined: 14 Feb 2007
Posts: 890

PostPosted: Fri Feb 01, 2008 1:19 am    Post subject: Reply with quote

If they are all in the same directory, you can select them in your file manager and print them all from the right-click context menu.

I did think this might work for files in different directories, by using Writers's Open dialogue, viewing recently modified files, selecting the documents, and sending them with a right-click. However, it seems the list is dynamically updated, and as soon as the first is sent to the printer, the list is refreshed and the rest of your selection is lost.
Back to top
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2560
Location: Chonburi Thailand Asia

PostPosted: Fri Feb 01, 2008 1:55 am    Post subject: Reply with quote

use a macro to print all currently open writer documents:

Code:
Sub ooo_printAllWriterDocs

' Hilfsfunktionen
GlobalScope.BasicLibraries.LoadLibrary( "Tools" )

' alle offenen Komponenten
oDoks = StarDesktop.getComponents().createEnumeration()

' Schleife der Komponenten
Do While oDoks.hasMoreElements()

 oDok   = oDoks.nextElement()   

 ' alle Writer Dokumente drucken
 If GetDocumentType( oDok ) = "swriter" Then
    oDok.print( Array() )
 End If
 
Loop

End Sub




Does this help?
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
Carsten B
General User
General User


Joined: 31 Mar 2007
Posts: 6

PostPosted: Sat Feb 02, 2008 9:16 am    Post subject: Reply with quote

Dear Probe1

thank you very much for your macro. It is running fine.

Carsten
Back to top
View user's profile Send private message
Tommy27
OOo Advocate
OOo Advocate


Joined: 18 Nov 2006
Posts: 302

PostPosted: Sun Feb 03, 2008 1:08 am    Post subject: Reply with quote

Probe, this macro is very nice.

the only problem is that it doesn't allow you to select the printer.

it start printing with the default printer.

is there any way you can modify to access the select printer dialog before starting the job?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group