Limit count of items to render

GroupDocs.Viewer allows rendering the items in Outlook Data Files (OST/PST). OutlookOptions is used to set rendering options for OST and PST formats. The following steps are to be followed when rendering the items in Outlook Data Files.

The following code samples show how to render the items in an Outlook Data File by setting a maximum limit.

            using (Viewer viewer = new Viewer("sample.ost"))
            {
                HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
                viewOptions.OutlookOptions.MaxItemsInFolder = 1000;
                viewer.View(viewOptions);
            }

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured .NET library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.