
win2pdfd.exe printmsg "sourcefile.msg" "printername"
win2pdfd.exe printmsg "sourcefile.msg" "printername" startpage endpage
win2pdfd.exe printmsg "sourcefile.msg" "printername" trayname
Prints the Microsoft Outlook item file format MSG file “sourcefile.msg” to the specified printername, optionally including a startpage and endpage, or tray name.
Any file or printer names that contain spaces must be enclosed with quotation marks. The "sourcefile" can be a local file path, or an web address (URL) to an existing EML file.
If the MSG file contains attachments and the attachment is one of the following, Win2PDF prints the attachment after the message body.
Extension |
Format |
Portable Document Format |
|
.DOCX, .DOC |
Microsoft Word (Win2PDF Pro Only) |
.RTF |
Rich Text Format (Win2PDF Pro Only) |
.ODT |
OpenDocument Text (Win2PDF Pro Only) |
.TXT |
Text (Win2PDF Pro Only) |
.XLSX, .XLSB, .XLS |
Microsoft Excel Spreadsheet (Win2PDF Pro Only) |
.PPTX, .PPT |
Microsoft PowerPoint Presentation (Win2PDF Pro Only) |
.ODS |
OpenDocument Spreadsheet (Win2PDF Pro Only) |
.CSV |
Comma Separated Values (Win2PDF Pro Only) |
.HTML, .HTM, .MHTML, .JS |
HyperText Markup Language |
.SVG |
Scalable Vector Graphics |
.XPS |
XML Paper Specification |
.TIF, .TIFF |
Tagged Image File Format |
.JPG, .JPEG, .JPE |
Joint Photographic Experts Group Image |
.PNG |
Portable Network Graphics |
.BMP, .DIB |
Windows Bitmap |
.GIF |
Graphics Interchange Format |
.EML |
Email Message Format (Win2PDF Pro Only) |
.MSG |
Microsoft Outlook Item File Format (Win2PDF Pro Only) |
.MHT |
Mime HTML Archive (Win2PDF Pro Only) |
If the "trayname" is specified, it must match one of the existing tray names for the printer ("Tray 1", "Upper", "Lower", "Manual", etc.). If the tray name contains spaces, it must be enclosed with quotation marks. If the specified tray is not available for the printer, the available tray names are printed on the command line console.
Returns 0 on success, and a Windows system error code on failure.