Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
string outputDirectory = @"C:\output";
string pageFilePathFormat = Path.Combine(outputDirectory, "page_{0}.html");
MemoryStream attachmentStream = new MemoryStream();
using (Viewer viewer = new Viewer("sample.msg"))
viewer.SaveAttachment("attachment-word.doc", attachmentStream);
using (Viewer viewer = new Viewer(() => attachmentStream))
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources(pageFilePathFormat);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.