Manage Learn to apply best practices and optimize your operations.

Printer friendly documents from a browser

This tip describes how to create printer friendly documents from a browser.

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.

Dig Deeper on Web Development for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...