# Search Text in ODP Presentations using C++

> Search and replace text in ODP presentations in C++. Use Aspose.Slides for C++ to find text in presentation files.

Source: https://products.aspose.com/slides/cpp/search/odp/
Updated: 2026-07-09



## Search and Replace Text in ODP Presentation via C++

Aspose.Slides for C++ lets you search text in ODP presentations and replace matching content. Use `SlideUtil::FindAndReplaceText` with a `Presentation` object to search slide text and save the updated presentation.

### Search Text in ODP Presentation using C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.odp");

SlideUtil::FindAndReplaceText(presentation, true, u"Quarterly Report", u"Annual Report", nullptr);
presentation->Save(u"updated-presentation.odp", SaveFormat::Odp);
presentation->Dispose();
```

## How to Search Text in ODP via C++

These are the steps to search text in ODP files.

Load the ODP file with the `Presentation` class.

Use the [`FindAndReplaceText`](https://reference.aspose.com/slides/cpp/aspose.slides.util/slideutil/findandreplacetext/) method to find and replace text.

Save the updated file with `SaveFormat::Odp`.

## Other Supported Search Formats
