NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
695 stars 143 forks source link

Outlook add-in. Saving mail into file #397

Closed VolodymyrMoldovan closed 3 months ago

VolodymyrMoldovan commented 11 months ago

Hi!

I get an random error message image

for the following code

var guid = Guid.NewGuid(); string tempFileName = Path.Combine(Path.GetTempPath(), guid.ToString()); tempFileName = Path.ChangeExtension(tempFileName, ".tmp"); mailitem.SaveAs(tempFileName, OlSaveAsType.olMSGUnicode); var bytes = File.ReadAllBytes(tempFileName); if (File.Exists(tempFileName)) { File.Delete(tempFileName); } return Convert.ToBase64String(bytes);

Thanks Volodymyr

jozefizso commented 11 months ago

I'm sorry but this report is not actionable.

You must provide examples and errors message in English language. And you mis provide a relevant code which doesn't work - ideally a code which reproduces the bug.