Problem solve Get help with specific problems with your technologies, process and projects.

Removing highlight before printing

Is there an easy way for an end user to remove the highlight on a document they searched for? Once they find the document and print it, the highlight prints.
Boy, it really likes to keep that highlight, doesn't it?

If you don't mind the document being printed in edit mode, you can add a Postopen event to the form that checks whether a specific field exists -- "InDialog," let's say -- and if the field exists, that is it's way of telling that it's being opened in a dialog. In that case, Postopen calls Source.Print and Source.Close. Then you need a Print action button that gets CurrentDocument, Document, assigns the InDialog field, opens the dialog with DialogBox method and then removes the InDialog field.

I played around a bit but didn't find a way to make it print in read mode without a highlight.

You could do it by training your users to uncheck "display search results only" and then check "selected only" (or create an action button to do it for them). Now the search results are not search results any more -- they're just selected documents.

You could also put your search results into a private folder as described in this article. In that case there is not a highlight.


Check out "How Do You Prevent Printing the Outline Around Words Found in a Full Text Search?" This has been around for a while, apparently it did not work for a while in R5, but it works now in at least 6.5.2.

—John D.

Do you have comments on this Ask the Expert question and response? Let us know.

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

    Search400.com'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 ...