Chapter 5. Advanced Printer Setup

Table of Contents
5.1. Adding a Printer
5.2. Customizing the Printer Description
5.3. Getting the PPD File For Your Printer
5.4. Updating the Registry

This section describes how to manually customize CrossOver's printing configuration to better suit your particular printer or system. However CrossOver uses CUPS to provide out-of-the-box support for most printers with no additional configuration. So in most cases you can simply ignore this section.

5.1. Adding a Printer

CrossOver supports the use of multiple printers. To setup another printer for use with CrossOver, you will need to manually edit three configuration files in the ~/.cxoffice/dotwine directory: config, win.ini, and system.reg.

config. Open ~/.cxoffice/dotwine/config, and find the entry for LPT2 in the [spooler] section. Modify it to pipe the output to lpr and specify the printer with the -P option:

  [spooler]
  "FILE:" = "tmp.ps"
  "LPT1:" = "|lpr"
  "LPT2:" = "|lpr -Pmy_second_printer"
  "LPT3:" = "/dev/lp3"

win.ini. Now edit ~/.cxoffice/dotwine/win.ini, and add a new line for the second printer in the [devices] section:

  [devices]
  Wine PostScript Driver=WINEPS,LPT1:
  Printer2=WINEPS,LPT2:
Additionally, if you want to make the new printer the default, then alter the device= line in the [windows] section:
  [windows]
  device=Printer2,WINEPS,LPT2:

system.reg. Finally, you will need to modify some of the keys in CrossOver's registry file, ~/.cxoffice/dotwine/system.reg. In this file, duplicate the [..\\Wine PostScript Driver] key and its [..\\PrinterDriverData] subkey. If it exists also duplicate the [..\\FontSubTable] subkey. Then substitute the name associated with LPT2 in the [devices] section of the win.ini file from above for the last tag in the section name for those keys. You will also need to change the "Name" and "Port" fields accordingly.

  [System\\CurrentControlSet\\Control\\Print\\Printers\\Printer2] ...
   ...
  "Name"="Printer2"
  "Port"="LPT2:"
   ...

  [System\\CurrentControlSet\\Control\\Print\\Printers\\Printer2\\PrinterDriverData] ... 
  "PPD File"=str(2):"%WINEPREFIX%/generic.ppd"

  [System\\CurrentControlSet\\Control\\Print\\Printers\\Printer2\\
    PrinterDriverData\\FontSubTable] ... 
  "Arial"="Helvetica"
  "Courier New"="Courier"
   ...