]>
Commit | Line | Data |
---|---|---|
cc48c73f CE |
1 | ' This is saved as word macros; opens a pdf and writes out a ps file using |
2 | ' laserjet ps driver | |
3 | ' Note that the input and output directories are hard coded and the output dir must exist | |
4 | ||
5 | ||
6 | Sub wx_ps() | |
7 | ||
8 | do_ps "C:\wx\wxWidgets\docs\pdf\", "wx" | |
9 | do_ps "C:\wx\wxWidgets\contrib\docs\latex\svg", "svg" | |
10 | do_ps "C:\wx\wxWidgets\contrib\docs\latex\ogl", "ogl" | |
11 | do_ps "C:\wx\wxWidgets\contrib\docs\latex\mmedia", "mmedia" | |
12 | do_ps "C:\wx\wxWidgets\contrib\docs\latex\gizmos", "gizmos" | |
13 | do_ps "C:\wx\wxWidgets\contrib\docs\latex\fl", "fl" | |
14 | do_ps "C:\wx\wxWidgets\utils\tex2rtf\docs", "tex2rtf" | |
15 | ||
16 | bye_bye | |
17 | End Sub | |
18 | ||
19 | Sub do_ps(mydir, myfile) | |
20 | ' wx_ps Macro | |
21 | ' Macro recorded 04/05/2005 by cje2 | |
22 | ' | |
23 | ChangeFileOpenDirectory mydir | |
24 | Documents.Open FileName:=myfile & ".rtf", ConfirmConversions:=False, ReadOnly:= _ | |
25 | False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _ | |
26 | "", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _ | |
27 | Format:=wdOpenFormatAuto | |
28 | ActivePrinter = "\\biolpc22\laserjet" | |
29 | Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ | |
30 | wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _ | |
31 | Collate:=True, Background:=False, PrintToFile:=True, PrintZoomColumn:=0, _ | |
32 | PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0, _ | |
33 | OutputFileName:="C:\daily\in\" & myfile & ".ps", Append:=False | |
34 | ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges | |
35 | ||
36 | End Sub |