# Programmatically search and select sentences in Presentation

**URL:** https://community.onlyoffice.com/t/programmatically-search-and-select-sentences-in-presentation/18806
**Category:** Docs API
**Tags:** how-to-question
**Created:** [12 March 2026 09:58 UTC](https://community.onlyoffice.com/t/programmatically-search-and-select-sentences-in-presentation/18806 "2026-03-12T09:58:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mustafa](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@Mustafa](https://community.onlyoffice.com/u/Mustafa)
#### Post date: [12 March 2026 09:58 UTC](https://community.onlyoffice.com/t/programmatically-search-and-select-sentences-in-presentation/18806/1 "2026-03-12T09:58:28Z")

</div>

Hi,

I m looking for ways to programmatically search and select a sentence in the docs, pdf, and slide. I found some methods works with pdf and docx but i cannot find any methods for slides. SearchNext Search is not working for slides.

How can i programmatically search and select a sentence in presentation?

Thanks in advance

---

<div class="post-metadata">

### Author: ![Nikolas](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/nikolas/32/2509_2.png) [@Nikolas](https://community.onlyoffice.com/u/Nikolas)
#### Post date: [17 March 2026 11:49 UTC](https://community.onlyoffice.com/t/programmatically-search-and-select-sentences-in-presentation/18806/2 "2026-03-17T11:49:25Z")

</div>

Hey @Mustafa, 👋

Thanks for the question! I think the issue you’re running into with `SearchNext` / `Search` not working properly in presentations (slides) is related to the same limitation that’s been discussed in these threads:

- [OfficeApi's Paragraph throwing an exception when calling Search function](https://community.onlyoffice.com/t/officeapis-paragraph-throwing-an-exception-when-calling-search-function/10691)
- [OfficeApi's Paragraph throwing an exception when calling Search function - #7 by monkeycoder](https://community.onlyoffice.com/t/officeapis-paragraph-throwing-an-exception-when-calling-search-function/10691/7)

Does this sound like the same problem you’re seeing, or is it something slightly different? If it’s not exactly the same, could you share a bit more detail (e.g., the exact API call you’re using, any error messages, or a minimal code snippet)?
