Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Error message when searching for Text

edited November 2007 in General
Hi,

When trying to search a report for text, if matching text is found the
following exception is raised:

Exception class ESearchHighlightError with message
'TppTextSearchHighlighter.CreateHighlight: Must use a screen device to
generate highlights. TppDrawText'.

This happens in the unit ppTextSearchHighlighter.pas at line 166:

{must use a screen device to generate}
if (FDrawText.DeviceFontHeight = 0) then
raise
ESearchHighlightError.Create('TppTextSearchHighlighter.CreateHighlight: Must
use a screen device to generate highlights. ' + aDrawCommand.ClassName);
******

Is this a bug, or have I done something wrong? The report has been printed
to the screen.

Thanks & Regards

Adam

Comments

This discussion has been closed.