Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/01d5d49139e26660cd01b834ad27d591 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/01d5d49139e26660cd01b834ad27d591 to your computer and use it in GitHub Desktop.
using (Viewer viewer = new Viewer("sample.msg"))
{
// The file path format e.g. 'page_{0}.html'
string filePathFormat = "page-{0}.html";
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources(filePathFormat);
options.EmailOptions.PageSize = PageSize.A4;
viewer.View(options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment