This tip describes how to make a "printer friendly" document from a Domino Web site. This should work in all versions of Domino, including DOmino 6.
STEP 1: Create a form callrd 'PF' with the fields placed in a format which will be easy to view when the document is printed. Minimize graphics and other 'non-essential' items. On the form, in the onLoad() event, place the following code:
Save the form
STEP 2: Create a view to display the 'PF' form. I call the view "PF"
The view needs to contain a single sorted column, and the formula is @Text(@DocumentUniqueID). This will display the unique id of each document in the database.
The view FORM formula must be set to "PF" - the name of the form you created in step 1.
STEP 3: Now, on the original web page, create a hotspot called "Printer Friendly" and assign it the following code:
url := "http://servername/dbname.nsf/PF/" + @Text(@DocumentUniqueID) + "?opendocument"; @URLOpen(url);
RESULT: When the link is selected, it will launch the same document using the PF form. The document will appear, the printer dialog box will display, and the original page will be retrieved from the browser history.