

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.


Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials


  • V6R1 upgrade planning checklist


  • Connecting multiple iSeries systems through DDM
