What this method does | Do you need it? | How to set up this method | Bypass the Windows Print dialog | Installing soft fonts | Home page
Important: This page is for use with WordPerfect for DOS 5.1 and 5.1+ only! See a separate page for a similar method for use with WordPerfect for DOS 6.0, 6.1, and 6.2.
This page provides a simple alternative to other methods described on this site for printing from WPDOS to any Windows printer. It also provides a highly accurate, high-resolution, Windows-based print preview of your documents that is in many ways superior to the WPDOS built-in print preview. The method on this page (the one you are reading now) is one of the recommended methods, but the others are still available if you have some reason to prefer any of them. This method should work under any recent version of Windows, including Windows XP, Windows Vista, and Windows 7.
Warning: This method will only work correctly if you follow the setup instructions exactly. You will probably find it easier to use a different method that can be installed automatically.
The macros and software described on this page are the work of Robert Holmgren, who also wrote software and macros for copying and pasting between WPDOS and Windows available elsewhere on this site.
See a separate page for alternate methods of printing from WPDOS to any Windows printer.
The method described on this page will allow you to print from WordPerfect for DOS to any printer that can be used under Windows, even if no WordPerfect driver is available, and even if the printer is connected to a USB port that WPDOS cannot recognize, or if the printer is a remote printer on a network. If you can print to your printer from a Windows application, you can print to it from WordPerfect for DOS by using this method. This method will also allow you to preview your files in a Windows viewer program that provides more accurate and higher-resolution displays than the built-in WPDOS preview feature. It also creates PDF (Adobe Acrobat) files directly from WPDOS. The method also enhances the font support of almost any printer for which WP provides only limited support.
You do not need this method if a WordPerfect for DOS printer driver exists for your printer! Be sure to read the section below that will help you answer the question, "Do you need this method?"
The initial setup takes about ten minutes, and you need only set up the procedure once. After you complete the setup, the method is entirely automatic and needs no intervention from the user.
One limitation of this, like all other any-printer methods, is that it does not let you select different paper trays for different pages in your print jobs. All pages will be printed from the default input tray (which is defined by the Windows driver for your printer). You may be able to work around this problem by running a separate print job for the the pages that you want to print on special paper (for example, on an envelope) and feeding the special paper into your printer by hand.
A side benefit of this method is that WordPerfect now treats your low-cost inkjet printer as if it were a high-powered color PostScript printer. Also, the standard 35 PostScript fonts act as if they were built in fonts to your printer, even the printer's native WPDOS driver supports only Courier or other typewriter-style fonts. For more details on using a PostScript-type printer with WPDOS, see the notes on Ghostscript drivers on a separate page.
The tools you will need for this method are a set of macros and other software written by Robert Holmgren and the Windows version of GPL Ghostscript, a PostScript interpreter that serves as the standard printing method for Linux and many variants of Unix. (GPL Ghostscript is free for personal use.)
The method works in this way: After the initial setup, you run a GSPRINT.WPM macro to start the process of printing (this macro can be assigned to the standard Shift-F7 keystroke that normally opens the WPDOS Print menu); when you print, an output file in PostScript format is automatically created on your disk; this file is automatically sent to the Ghostscript program, which converts it the format used by your actual (non-PostScript) printer, and sends the converted file to your printer to be printed. The whole process is fully automatic and takes only a few seconds.
Note: One benefit of this method is that it makes it possible for WPDOS 5.1 to print color graphics on non-PostScript printers. Normally, WPDOS 5.1 prints in color only with color PostScript printers, not with standard inkjets. With these methods, however, color graphics can be printed on any color printer.
Note: The WP macros in this system were revised on 17 July 2010 for compatibility with files that have long Windows filenames or pathnames.
Important note: Even if your printer is connected to your computer by a USB cable, you may be able to print from WPDOS without using this method. Read the section on another page that answers the question, Do you need this method?
Before you begin: You must be able to print from Windows applications to your printer. If you have not tested your printer, press Ctrl-P now and print this page. If your printer does not print the page, then stop and install the software that came with your printer. When, and only when, your printer works with Windows applications, return to this page.
Extremely important note: Don't even think about setting up this method unless you are willing to follow the instructions. If you decide to ignore any of the instructions, please do not send me messages asking me why you can't print from WordPerfect or why you don't get the results you want. Instead, go back and follow the instructions with close attention to every detail.
Also: do not even try to use these instructions unless you fully understand the concept of an "example". Many of the instructions listed below use examples of directory names and filenames. You must be prepared to replace the example names with the actual names found on your system. The instructions below explain clearly how to find those actual names. If you are one of the visitors to this site who do not understand what an "example" means, please stop now, and do not attempt to use this method!
(1a) Download and install GPL Ghostscript; look for the most recent version that is available in a filename with a name like gs###w32.exe (where ### is a number like 901 or higher). (If you already have Ghostscript installed on your system, you can probably use your existing version, but read the following paragraph and write down the information that you will need about your existing setup.)
In the installation options, be sure to select the option that installs fonts, and take very careful note of the directory into which the installer proposes to install the software. If the directory includes a name longer than eight letters, or which includes a space, such as "C:\Program Files\GS", change the proposed directory to something like "C:\GS" so that there is no space in the name and no directory name longer than eight letters. This is absolutely essential for WPDOS 5.1; the macros will not work if any directory name is longer than eight letters or includes a space.
When the installation is complete, use Windows Explorer to find the name of the directory into which the Ghostscript programs have been installed; this directory name will include the version number, and will probably look something like this example: C:\GS\GS8.71. To be absolutely certain that you have found the correct directory, you can use the Start Menu, then Search, and search your hard disk for the file "GSWin32C.EXE"; this will be in a directory called BIN, and the BIN directory will be inside the directory whose name you are looking for. Remember that the directory name given here is an example and that you absolutely must find the actual directory name on your system. Write down the actual directory name, not the example. It will start with a drive letter, then GS, then a directory name that consists of a version number. Write down this "Ghostscript directory" name very carefully; you will need it later.
Note: Another way to find this crucial directory name is this: Right-click on the Start menu entry that Ghostscript created when it was installed; choose Properties, then go to the Shortcut tab, and look at the top field, named Target or File or something similar. Move the cursor to the extreme left of the field, and write down the drive letter and path, up to but not including "\bin". It will look something like this: C:\GS\GS8.54.
(1b) To create PDF files from WPDOS, and also to have a highly accurate Windows-based preview of printed output, download and install GSview, a PostScript viewer program designed to work with Ghostscript. The installation program will offer to install the program in something like "C:\Program Files\Ghostgum" or C:\GHOSTGUM; we very strongly recommend that you replace the proposed directory with the same directory you specified for Ghostscript in step (1a), typically "C:\GS" (no quotation marks) so that the GSView program and its directory will be in the same directory that contains AFPL Ghostscript. (If you do not follow this suggestion exactly, the macro may not work! Do not use a directory more than one folder deep, in other words do not use something like "c:\gs\GhostGum", but only something like "c:\gs".) When GSView has been installed you must find the directory that contains the file GSview32.exe, which (if you followed our recommendation) will be something like C:\GS\GSVIEW - but you may want to use the Start Menu's Search feature to confirm this. Write down the name of this "GSView directory" very carefully; you will need it later. (Another way to find this directory is this: right-click the GSView icon on your Start Menu; choose Properties, then go to the Shortcut tab and note the drive letter and path, everything up to but not including "\gsview32.exe".)
Absolutely crucial step: Open the GSView program that you just installed. If you installed it normally, the program will be listed in the Start Menu list of Programs or All Programs button, as something like Ghostgum/GSView/GSview 4.9. Double click on the program name to run it. On the program's top-line menu, choose Options; a drop-down menu will appear; place a checkmark on the option “Ignore DSC” (you can do this by clicking on this item). This step is absolutely required for use with WPDOS, because WPDOS does not understand PostScript Document Structuring Conventions (DSC). If you know what you are doing, check any other options that you want, then (very important) click on "Save Settings Now". If you use US Letter paper or any paper size other than A4, choose the Media menu and place a checkmark (by clicking) next to the size you use. Feel free to browse among the other options to see what’s possible, and if you change anything, return to the Options menu and again click on "Save Settings Now". Then close GSView.
(2a) Start WPDOS 5.1; use Shift-F1, 6-Location of Files, 2-Keyboard/Macro Files. A directory name may or may not be listed there (for example, C:\WP51\MACROS); if a name is listed, write down the name of the directory, and write down that this is your "Macro" directory. If no directory name is listed, enter the name of your main WP directory (for example, C:\WP51), and write down that this directory is your "Macro Directory."
Don't be clueless! Don't assume that you already know which folder contains your macro files! Don't assume that you can safely skip the instructions to use Shift-F1 to find the actual location of the folder! Clueless Visitor No. 60 was convinced that he knew exactly which folder to use, and so he wasn't going to waste his valuable time by following the instructions. So, at a later stage in the installation process, he copied the macro files into the wrong folder, and of course this method didn't work. Clueless Vistor No. 60 then spent a great deal of time writing e-mails and posting messages in which he complained that this method doesn't work - even though the only reason it didn't work was that Clueless Visitor No. 60 refused to follow the instructions. Don't be clueless like Clueless Visitor No. 60! Follow the instructions! (One of a series of Don't be clueless! warnings provided by this site as a public service.)
(2b) Still in WPDOS 5.1, use Shift-F1, 6-Location of Files, 4-Printer Files. Again, a directory name may or may not be listed there (for example, C:\WP51\PRINTERS); if a name is listed, write down the name of the directory, and write down that this is your "Printer Directory". If no directory name is listed, enter the name of your main WP directory (for example C:\WP51), and write down that this directory is your "Printer Directory". Exit WordPerfect for DOS.
Don't be clueless! Don't assume that you already know which folder contains your printer files, and don't assume that you can safely skip the instructions to use Shift-F1 to find the actual location of the folder. Clueless Visitor No. 75 was convinced that he knew exactly which folder to use, and he wasn't going to waste his valuable time by following the instructions, so, in a later stage in the instructions, he copied a printer file into the wrong folder, and of course this method didn't work. Clueless Visitor No. 75 ended up wasting far more time by ignoring the instructions than he could possibly have saved by ignoring them. Don't be clueless like Clueless Visitor No. 75! Follow the instructions! (One of a series of Don't be clueless! warnings provided by this site as a public service.)
(2c) Make sure you know the drive letter of your WPDOS directory; for example, if WPDOS is in C:\WP51, then the drive letter is C and the "Root Directory of the Drive with WP" is C:\ (that is, C or whatever the drive letter is, followed by a colon and a backslash).
(3) Download the ZIP self-extracting archive file GSPrnVw5.EXE to the directory whose name you wrote down in step (2a), the “Macro Directory". Open a DOS or command prompt (Help! How do I open a DOS prompt?) and navigate to that directory to run the GSPrnVw5.EXE program. The program will extract a number of files into the directory. Make sure that GoWP.exe, GSPrint.WPM, GSPrnt.BAT, GSViewer.WPM, KMD.EXE, Printers.VBS, and WP51GSCR.ALL are present in the directory. Do not close the DOS window!
(4a) Using the DOS or command-prompt Copy command, copy the file WP51GSCR.ALL to the directory whose name you wrote down in step (2b) above - the “Printer Directory” folder. For example, your command at a DOS or command prompt might look like this (this is an example only — be absolutely certain to use your actual Printer Directory, which may be entirely different from the one shown below!):
COPY WP60GSCR.ALL C:\WP51
then press Enter. Do not close the DOS or command window!
(4b) Still at the DOS or command prompt, type the following command (it does not matter which directory you are in when you type it):
the press Enter. The operating system will respond on the next line with something that resembles one of the following examples:
Remember that these are examples only! You may see something entirely different! Examine the system’s response. It consists of a “path” specification, followed by a filename (COMMAND.COM or CMD.EXE). Do not close the DOS or command window! Mentally extract from this response the path specification only and drop the last backslash (“\”), for example (these are only examples, corresponding to the three examples above!):
(4c) Do not close the DOS or command window! At the next DOS or command prompt, write the following command, carefully copying the “path” into your command - as in this example:
COPY KMD.EXE C:\WINDOWS\SYSTEM32
(Important: remember that you must omit a final backslash from the "path") and then press Enter. Do not close the DOS or command window! Remember that the path shown here is an example; you must use the path that you saw on screen in step (4b).
(4d) Still at the DOS or command prompt, copy the file GoWP.EXE to the same directory to which you copied KMD.EXE in step (4c). Use the same command shown there, but replace KMD.EXE with GoWP.EXE.
(4e) Still at the DOS or command prompt, copy the file GSPrnt.BAT to the "Root Directory of the Drive with WP" as determined in step (2c) - as in this example:
COPY GSPrnt.BAT C:\
You should now close the DOS or command window by typing the command "EXIT" (no quotation marks) at the prompt.
(5a) Restart WPDOS. Press Shift-F7/Select/Additional Printers, and select one of the drivers whose name begins with "Ghostscript" and ends with "wpdos.org"; choose the driver that best matches your actual (hardware) printer. For example, if you have a color inkjet printer, choose the "Ghostscript color" printer. Make sure that the driver you choose is selected (has a star next to its name) in the Select Printer screen. Please remember: In the list of Additional Printers, you should not look for the real name of the printer that you own and you should not try to find the name of a printer that might be similar to your own! Choose one of the printers whose name begins "Ghostscript".
(5b) After selecting and installing the Ghostscript driver, you must direct the printer output to a file. Use Shift-F7/Select Printer, then, in the list of installed printers, make sure the highlight is on your Ghostscript printer driver. Select Edit, and in the Select Printer: Edit screen, select Port, then 8-Other, and enter a pathname that consists of the "Drive Letter of your WP Installation" as described in step (2c) followed by a colon, a backslash, and the filename WPDOC.PS. In the following example, the example of your Drive Letter of your WPDOS Installation is the very first letter of the example, and it is in green : C:\WPDOC.PS - but remember to replace the the very first letter (the one that is shown in green) with the actual "Drive Letter of your WP Installation" on your system! Press Enter repeatedly until you are back to the document editing screen. (Be careful: the filename is WPDOC.PS, not wpdoS.ps or anything else.)
(6a) Still in WPDOS, very carefully press Ctrl-F10 (Macro Define) and enter the name GSPrint. When prompted that GSPRINT.WPM already exists, very carefully choose Edit. If, by mistake, you choose Replace, you will need to press Cancel, close WPDOS, and reinstall the macros as described in step (3). In the editing screen, you will find four "User Variables" described at the top of the file, with pithy instructions for setting them. For now, we are concerned to set only the first two User Variables. The first is called “GSDir”. This variable must contain the "Ghostscript directory" name that you wrote down in step (1a). Copy that directory name exactly into User Variable "GSDir”, so that it looks like this example:
Now assign the second User Variable, called "WPDrive". This Variable is the drive letter of your WPDOS Installation. Add the letter (and only the letter, without any colon or backslash) in the second variable so that it looks something like this:
When you have checked your typing, press F7 to save the macro file.
(6b) If you performed step (1b) and you want to create PDF files from WPDOS, very carefully press Ctrl-F10 (Macro Define) and enter the name GSViewer. When prompted that GSVIEWER.WPM already exists, very carefully choose Edit. If, by mistake, you choose Replace, you will need to press Cancel, close WPDOS, and reinstall the macros as described in step (3). In the editing screen, you will find four "User Variables" described at the top of the file, with pithy instructions for setting them.
For now, we are concerned to set only the first three User Variables. The first is called “GSDir”. This variable must contain the "Ghostscript directory" name that you wrote down in step (1a). Copy that directory name exactly into User Variable “GSDir”, so that it looks like this example:
Now assign the second User Variable, "ViewDir"; this will be the path that you wrote down in step (1b) for the GSView.exe program. Copy that directory name exactly into the User Variable "ViewDir" so that it looks like this example:
Now assign the third User Variable, called "WPDrive". This Variable is the drive letter of your WPDOS Installation. Add the letter (and only the letter, without any colon or backslash) in the second variable so that it looks something like this:
The fourth User Variable “DfltView” refers to the type of result you want to display. There are two choices, and three possible settings that can be entered in this User Variable. You can enter “F” to always display “F”ormatted text straight out of WP, which will appear on screen exactly as it will appear on paper. This is the fastest choice (quickest to display, usually almost instantaneous). Or enter “P” to always output your text as a “P”DF (Portable Document Format file). This takes a bit more time to appear, depending on file size, because the macro (using Ghostscript) has to create the PDF first, then display it. The third choice is to enter “A”, to “A”sk each time the macro is run which of the two types of file you require; this is the macro's default setting. If you select “F” or “P”, you never see the Ask dialog; the macro always displays Formatted or PDF text, according to your choice.
When you have carefully entered the User Variables, press F7 to save the macro file.
(7) (Recommended if you intend to use GSPrint and/or GSViewer often.) Assign the GSPrint.WPM or GSViewer.WPM macro to a keystroke by editing a WP keyboard definition. If you do not know how to edit a keyboard, here are the basic steps: Shift-F1, 5-Keyboard Layout, then, if you already have a keyboard selected, choose 7-Edit, or, if no layout is selected, choose 4-Create and give it a name (perhaps GSPTR). In the Keyboard editing screen, choose 7-Retrieve; at the Key: prompt, type the Alt-P key (Alt-P is only an example; you can use any key-combination that WPDOS recognizes, but be careful not to use a key-combination that you already use for something else, such as F7 or Shift-F1); then, at the Macro: prompt enter GSPRINT or GSViewer. Press OK or Close until you exit the menu. Repeat this procedure to assign other macros to keystrokes if desired. Press F7; highlight the name of your keyboard layout if it is not already highlighted; press 1-Select, then F7.
If you only have one printer, for example any "Windows-only" printer, and you will henceforth be entirely reliant on GSPrint, feel free to assign GSPrint to Shift-F7. Even if you still have other printers, there will be no loss of functionality if you choose Shift-F7. You can print to any printer in your arsenal using GSPrint's interface; if you elect not to print with Ghostscript, GSPrint will exit gracefully and printing will proceed normally. Because GSPrint is primarily designed for Ghostscript printing, a Warning screen will display if a suitably-configured Ghostscript printer is not your currently “S”elected default printer. You can just breeze through this screen by hitting Enter, to Proceed directly to the standard Print dialog, where you can change drivers, or not, as you choose.
File location summary: At the end of the installation, the following files should be in the correct directories, as follows:
Test the installation: Create or open a document and print it by launch GSPrint, either with a dedicated keystroke or with Alt-F10. Your WPDOS screen will go blank for a moment, then return; the familiar Windows "Print" dialog will appear, with your default Windows printer listed as the destination printer. You can choose another printer if you wish, change the number of copies, etc. (You can print directly to a printer without ever seeing this Print dialog by customizing your installation after successfully testing it.) Click OK or press Enter, and your document should print successfully. If it does not print, or if the Print dialog fails to appear, repeat all the instructions, slowly and carefully, until it does.
Optional: Customize the macros to avoid the Windows Print dialog and for more efficient printing: See the next section, below, for details.
The GSPrint.WPM macro may be customized so that it prints either to the default Windows printer (bypassing the Windows Print dialog), or to a specific Windows printer, whatever the default might be (also bypassing the Windows Print dialog), and also so that GSPrint uses the fastest and most efficient available Ghostscript driver for your printer.
To print to the default Windows printer automatically, and to refine Ghostscript's operation: In WordPerfect, use Ctrl-F10 (Macro Define), select GSPrint and choose the option to Edit the file. Scroll down to the line that begins "Ghostscript Printer Driver"; this section of the macro lets you specify two things: the Ghostscript driver that sends data to your printer, and whether to print to the current default Windows printer or to display the Windows print dialog when printing.
Find the line in this section of the macro that reads:
(Note that the centered dot that appears in many places in these macros is produced by typing an ordinary space character with the spacebar.) This line tells the macro to use Ghostscript's mswinpr2 driver, which can send data to any Windows printer, and to display the Windows Print dialog whenever you use the macro to print. If you want to print to whatever the default Windows printer might be, change dialog to default and save the file. This will prevent Windows from prompting you to select a printer when you use GSPrint.
If, and only if, you follow the steps shown below that force GSPrint to print to a specific printer, you may also change mswinpr2 to a the name of driver that will work more quickly, and perhaps with better-printed output, with your printer. Substitute drivers exist for some but definitely not for all printers. To learn if such a driver exists for your printer, perform the following steps:
First, determine whether your printer is listed on the Ghostscript printer compatibility page. If your printer is listed, note the "devicename" under which it appears. For example, the Canon BJC-1000 is listed under bjc600. Write down this devicename (but remember that bjc600 is only an example; do not use this example unless you actually have a printer that is actually listed under bjc600 on that page; now read the preceding phrases three times or until you fully understand it!). If your printer is not listed, try to find a model from the same manufacturer with a very similar number; if you are in any doubt, look up your printer in the database at LinuxPrinting.org. (For example, as explained at LinuxPrinting.org, the Canon BJC-5000, 5100, and 8500 will not work with the bjc600 or any other bjxxxx devicename.)
Next, use the Windows Start Menu to run Ghostscript. (From the list of programs, find Ghostscript, then Ghostscript #.##). You will only need to do this once. At the Ghostscript command line, type
(note the space followed by two equal signs) and press Enter. Do not type anything else! In the list of names that appears, look for the devicename that you wrote down earlier; look for the name but do not type it! (The list is very confusing and is very difficult to navigate, because it is not arranged alphabetically and some names are broken in the middle. You may need to look two or three times before you find the name you want.) The Windows version of Ghostscript does not support all the devices supported by Linux versions, and the devicename you wrote down earlier may not be present. You must find a name that exactly matches the one you are looking for; an approximately similar name is not good enough! If you find the devicename you want, you will be able to use it in the GSPrint.wpm macro; if you do not find it, then do not change the macro's default setting of mswinpr2.
After reading the list of devicenames, still at the Ghostscript command line, type quit and press Enter to close Ghostscript (or simply press Alt-F4 to close Ghostscript without typing anything). You will not need to run Ghostscript manually again.
If (1) you found a devicename that you are certain is suitable to your printer and (2) you found the exactly identical devicename in the list in Ghostscript itself, and (3) you have already performed the steps required to print to a specific printer (described immediately below), then, and only then, should you change the line
to read something like this (remember, this is only an example, and you must use a real Ghostscript devicename instead of the one shown here; the example shown here will not work for any real printer in the known universe!!):
To print to a specific printer, no matter what the Windows default printer might be: First, click on the Start Menu and select Printers or Printers and Faxes or Settings/Printers, or any similar item that displays a list of your Windows printers. Write down the exact name of the printer you intend to use, for example, "hp SuperDuperJet 990c" (but remember that this is only an example; you must use the name of a real printer that you find on the list on your own system). If you print to a network printer, right-click on the name of the printer, choose Properties, then go to the General tab and write down the exact name that you find under "Print to the following port" (for example: "\\ROSCOE\SDJ990" - but remember that this is only an example and that the example will not work on your system). Occasionally, the name shown here is not the same as the name that Windows uses internally; if you encounter problems, you can also determine the exact name of your printer by using Windows Explorer to navigate to your WPDOS Macros directory and double-clicking the file Printers.VBS that you installed with the rest of this package. Press Enter until you see the correct name of your printer.
In WordPerfect, use Ctrl-F10 (Macro Define), select GSPrint and choose the option to Edit the file. Scroll down to the line that begins "Windows Printer Hardware Device"; this section of the macro lets you specify two things: the Ghostscript driver that sends data to your printer, and whether to print to the current default Windows printer or to display the Windows print dialog when printing.
Find the line in this section of the macro that reads:
Between the two tildes, very carefully type in the printer name that you wrote down earlier. Be certain to surround the name with the two tildes. Press F7 to save the macro file. Confirm your setup by printing a document using the GSPrint macro.
You can install any of hundreds of Adobe Type 1 (PostScript) soft fonts for use with these drivers by using the soft font definitions in the WPDOS 5.1 PostScript (Additional) drivers downloadable from Corel's page for WPDOS 5.1 printer drivers; search for "PostScript (Additional)" and "PostScript (Additional 2)" through "PostScript (Additional 4)." If you have any other Type 1 fonts, or if you want to convert TrueType fonts into Type 1 fonts for use with this method, see this site's separate page on installing Type 1 fonts in WPDOS 5.x PostScript drivers.
If you want to convert TrueType fonts to Type 1 fonts, use the ttf2pt1.exe utility described on this site's separate page on installing Type 1 fonts in WPDOS 5.x PostScript drivers.
For euro-enabled Type 1 soft fonts, see this site's euro page.
Home Page Site Map