简体   繁体   中英

Convert .msg to .pdf programmatically in C#

I've been trying to convert a large batch of .msg files into .pdf. So far, I've been able to leverage the Universal Document Converter and its libraries, but there's an issue: because it's basically a printer, it pops up a small dialogue box in the background between the conversion of each file, momentarily holding up the system.

I need this to be completely set-and-forget, running silently in the background. I have upwards of 3,600 messages to convert at once, and this happens at least weekly.

I've utilized the PDFsharp libraries before, but I'm still really new to them. Is it possible PDFsharp can do this, without the annoying dialogue boxes?

Any help would be greatly appreciated.

Actually in the most recent version of Universal Document Converter it is possible to get rid of that dialogue:

1) open UDC preferences window and go to "Advanced" section

2) Uncheck "Show progress window while processing" feature

3) Go to "Output location" section and check "Use predefined location and file name"

By the way, I advise you to try use FolderMill software. It works by monitoring hot folder. So you just copy source MSG files to the "Hot Folder" FolderMill monitors. And it will automatically convert all incoming files to PDF with no user interaction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM