Casting Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    25 posts
    Member since:
    May 2017

    Posted 07 Jul 2017 Link to this post

    when using radPdfViewer1.PdfViewerElement.Find function the return type is Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult I would like to convert/cast that to Telerik.Windows.Documents.Fixed.Search.SearchResult.

    when I attempt to create an instance of either SearchResult I get "SearchResult' does not contain a constructor that takes 0 arguments" but can find a constructor for either.

  2. Hristo
    Hristo avatar
    1189 posts

    Posted 10 Jul 2017 Link to this post

    Hi Bruce,

    Thank you for writing.

    At the moment RadPdfViewer for WinForms supports .NET 2.0 and most of the types coming from the document processing libraries cannot be used directly. That is why the there are certain classes which are only different in their namespace. This sometimes may also cause a confusion.

    With our R3 2017 release, RadPdfViewer will drop support for .NET 2.0 and the DPL types would be used directly. In this respect, after our next release the RadPdfViewerElement.Find method will return a Telerik.Windows.Documents.Fixed.Search.SearchResult object so you will not need to convert the objects. At the moment you cannot create such an instance because this class is used internally and it does not expose public constructors.

    I hope this information was useful. Should you have further questions please do not hesitate to write back.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top