Hello,
i can`t get email attachment if I load a file(msg) from stream.
herer ist my code snippet:
public static String GetEmailAttachment(Stream DocumentName)
{
try
{
ViewerConfig config = Utilities.GetConfigurations();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
HtmlOptions options = new HtmlOptions();
string htmlPageAttach = “”;
options.IsResourcesEmbedded = true;
DocumentInfoContainer infoContainer = htmlHandler.GetDocumentInfo(DocumentName);
foreach(AttachmentBase attachment in infoContainer.Attachments)
{
List pages = htmlHandler.GetPages(attachment, options);
foreach(PageHtml page in pages)
{
htmlPageAttach += page.HtmlContent;
}
}
return htmlPageAttach;
}
I think here is the problem -> List pages = htmlHandlerGetPages(attachment, options).
htmlHandler tried looking for the attach-file on my local path, but i get email-file from webservice.
htmlHandler tried looking for the attach-file on my local path, but i get email-file from webservice.
How can I resolve this problem