| View previous topic :: View next topic |
| Author |
Message |
Carsten B General User

Joined: 31 Mar 2007 Posts: 6
|
Posted: Thu Jan 31, 2008 12:51 pm Post subject: How to print all open Writer files without individual calls? |
|
|
| It is possible to print all open Writer files "in one fell swoop"? |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
Posted: Thu Jan 31, 2008 1:38 pm Post subject: |
|
|
| No |
|
| Back to top |
|
 |
David Super User


Joined: 24 Oct 2003 Posts: 5668 Location: Canada
|
Posted: Thu Jan 31, 2008 2:53 pm Post subject: |
|
|
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 |
|
 |
huwg Super User

Joined: 14 Feb 2007 Posts: 890
|
Posted: Fri Feb 01, 2008 1:19 am Post subject: |
|
|
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 |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Fri Feb 01, 2008 1:55 am Post subject: |
|
|
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 |
|
 |
Carsten B General User

Joined: 31 Mar 2007 Posts: 6
|
Posted: Sat Feb 02, 2008 9:16 am Post subject: |
|
|
Dear Probe1
thank you very much for your macro. It is running fine.
Carsten |
|
| Back to top |
|
 |
Tommy27 OOo Advocate


Joined: 18 Nov 2006 Posts: 300
|
Posted: Sun Feb 03, 2008 1:08 am Post subject: |
|
|
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 |
|
 |
|