WatchTower Library 2009 Tips

Print to PDF

You can print Watchtower Library pages to PDF.

It would be nice if it was really easy, just like it is for native Mac applications. Unfortunately, it's not just a simple option; although, it is an option you can access. This little how-to explains how.

You can read the details here. It involves making a small edit to the "registry". That might sound scary. But don't worry: editing the registry just means changing a small hidden setting. All Windows machines have these settings. CrossOver's Windows emulation also has "registry" settings which you can change.

Here are some simple instructions that you can follow to print to a file on your Mac computer from within Watchtower Library running under CrossOver.

Run regedit

Start CrossOver if you haven't done so already. Select the Programs menu then Run Commands item. This gives you a Run Command window. You have two main options: Use Bottle and Command. Pick your Watchtower Library bottle, if not already selected. Then type regedit as the command and click Run.

After a few seconds, CrossOver opens the Registry Editor.

Change the spooler LPT1: setting

Registry Editor displays "registry keys" for your computer. The left-hand panel lists a set of HKEY items.

Click on the plus sign next to HKEY_CURRENT_USER, then Software, then Wine, then Printing. Finally click on Spooler. You see three settings: default, KDE: and LPT1:.

Double-click on LPT1:. It opens a new window entitled Edit String. Change the string value from |lpr to say /Users/me/Desktop/wine.ps, where me stands for your user name. You can change it to any path name. The .ps extension stands for PostScript. CrossOver's embedded Wine (Windows emulation) software incorporates a generic PostScript driver. By default, PostScript output pipes to Unix lpr, hence the default |lpr value. Changing this to a path-name writes the PostScript to disk instead of piping it to the CUPS print system and to your printer.

There's another alternative. You can make the print-out open automatically in Preview without creating a file. From there you can either save as a PDF or print in the normal Mac way. Change the LPT1: setting to

|open -f -a Preview

Note the 'bar' prefix character. It pipes the PostScript output to application Preview.

Printing

Having closed the Registry Editor, run Watchtower Library and try to print something. Note, before you can Print, you need to click on what you want to print. So, for instance, click on the current day's text and notice that the Print option on the File menu now becomes available.

Hint: make sure that the text you want to print has the focus (the cursor flashing somewhere within the text) in order to print. Otherwise the Print option is greyed out. Ctrl+Tab cycles the focus around. If you want to print just a sentence or paragraph, just click and drag to highlight a portion of the text.

Select Print or press Ctrl+P. Change the name of the printer to Wine PostScript Driver. Ignore the fact that it saysLPT1: for Where to print. It won't print to parallel printer port number 1! Your computer doesn't have one, I'm sure. It's a legacy name. Just click OK.

If you specified the path name, a new file called wine.ps appears on your Desktop. You can double click this and OS X will automatically convert the PostScript to Adobe PDF. Press Cmd+S to save as PDF. If you specified the 'pipe to Preview' setting, your print-out will automatically open in Preview from where you can save or print.


by Juan on 2010-03-13 00:54:33
Important Information Tips are provided by the CrossOver Community and Advocates. They are not intended to be used for official CodeWeavers Support. For that, please visit our official support pages.
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM0NzIyMzMzLCJjc3JmX3Rva2VuIjoiSnNzZWNkVTRGNGJoWkVGTiIsImdkcHIiOjB9