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.
- Create Viewer object;
- Create HtmlViewOptions (or JpgViewOptions, or PngViewOptions, or PdfViewOptions) object;
- Set Outlook options i.e. HtmlViewOptions.OutlookOptions.MaxItemsInFolder;
- Call View method.
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
View OST/PST Files Online
Along with full-featured .NET library we provide simple but powerful free online Apps. View OST and PST files online with GroupDocs Viewer App.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example