Home General

Find dialog on Customer Report Preview (TppViewer)

Hi,
How to add/show Text Search/Find dialog on Custom Report Viewer (TppViewer)?



Comments

  • Hi Jayanto,

    The TextSearchPreview is designed to work inside the previewer however it is possible to assign it to a separate TPanel for quick use. Something like the following:
      FTextSearchPreview := TppTextSearchPreview.Create(Self);
    FTextSearchPreview.Viewer := ppViewer1;
    FTextSearchPreview.TextSearchSettings := ppReport1.TextSearchSettings;

    FTextSearchPreview.CreateControls(pnlTextSearch);
    FTextSearchPreview.ArrangeControlsVertically;
    FTextSearchPreview.BeforePreview;

    ppReport1.PrintToDevices
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Thank you, it works.
  • Hello,
    1. Request: Property Text =''; better -> TextHint:='Find Text'
    2. In corrrect page positin on Find First/Next: if "ZoomSetting <> zs100Percent". How to fix this issue?

    Thank you
  • 1. The TextSearchSettings.DefaultText can be used to alter the initial text.

    2. I am unable to recreate this on my machine. As I mentioned before, the TextSearchPreview is not designed to work outside the TppPreview so you are using it at your own risk here. If you would like to create a simple example and send it to me, I will see if there is something that can be done. Send the example to support@ in .zip format.

    For a more robust solution, I suggest creating a custom Previewer that meets your specific needs, while still providing native TextSearch features built-in.

    https://rbwiki.digital-metaphors.com/plugins/dialogs/preview-plugin/
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.