M
MortenL
Hello,
I need to convert MSG files to PDF through an automation process.
I first thought of opening the MSG file in Outlook and saving it as a
PostScript file and then to convert the Postscript file to PDF using
Acrobat Distiller.
I thought of using something like this
Dim outlookappl As Outlook.Application
Dim outlookitem As Outlook.MailItem
Set outlookappl = New Outlook.Application
Set outlookitem = outlookappl.CreateItemFromTemplate("C:\Test.msg")
outlookitem.PrintOut
outlookitem.Close (olDiscard)
But it seems like the PrintOut method does not accept a filename
parameter like the PrintOut method for Word does.
I've also been looking at Outlook's SaveAs method but the warning
message that pops up requires user intervention and that's no good for
my solution.
Please help me.
Regards,
Morten
I need to convert MSG files to PDF through an automation process.
I first thought of opening the MSG file in Outlook and saving it as a
PostScript file and then to convert the Postscript file to PDF using
Acrobat Distiller.
I thought of using something like this
Dim outlookappl As Outlook.Application
Dim outlookitem As Outlook.MailItem
Set outlookappl = New Outlook.Application
Set outlookitem = outlookappl.CreateItemFromTemplate("C:\Test.msg")
outlookitem.PrintOut
outlookitem.Close (olDiscard)
But it seems like the PrintOut method does not accept a filename
parameter like the PrintOut method for Word does.
I've also been looking at Outlook's SaveAs method but the warning
message that pops up requires user intervention and that's no good for
my solution.
Please help me.
Regards,
Morten