![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
Am 25 Apr 2006 00:10:37 -0700 schrieb MortenL:
If you donīt find that tool: Maybe itīs an option to save the MSG first as HTML and then convert that? http://www.freevbcode.com/ShowCode.asp?ID=3605 -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.vbOffice.net -- 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 |
#3
|
|||
|
|||
![]()
Thank you very much for your suggestion.
However, I could find no way of saving the file as an HTML file without using the method SaveAs. When using the method SaveAs a message pops up saying "A program is trying to access data from Outlook that may include address book information. Do you want to allow this?" Then a user has to press the Yes button, but since I want my application to be all automatic there won't be any user to press any button. Does anyone have any suggestions how to save the MSG file in another format (e.g. HTML) without any message boxes popping up ? Regards, Morten |
#4
|
|||
|
|||
![]()
Am 26 Apr 2006 00:43:25 -0700 schrieb MortenL:
in OL 2003 you can avoid that message by using the instrinsic Application object instead of one created by CreateObject. Another approach is to use the Redemption from www.dimastr.com. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.vbOffice.net -- Thank you very much for your suggestion. However, I could find no way of saving the file as an HTML file without using the method SaveAs. When using the method SaveAs a message pops up saying "A program is trying to access data from Outlook that may include address book information. Do you want to allow this?" Then a user has to press the Yes button, but since I want my application to be all automatic there won't be any user to press any button. Does anyone have any suggestions how to save the MSG file in another format (e.g. HTML) without any message boxes popping up ? Regards, Morten |
#5
|
|||
|
|||
![]()
Hello Morten
I'm doing a similar project, and achieved my results using a 3rd party application called EZDetatch - www.techhit.com Regards Kevin "MortenL" wrote: 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 |
#6
|
|||
|
|||
![]()
Thank you for your help.
I have now with success used a tool from http://www.contextmagic.com/ called ClickYes Pro. This tool eliminates the warning message that pops up when I'm using the SaveAs method on the mail item. I then saved the mail as HTML (or TXT) and after that I could convert to PDF using Microsoft Word and Adobe Distiller. Morten |
#7
|
|||
|
|||
![]()
Am 3 May 2006 05:07:45 -0700 schrieb MortenL:
Morten, that tool doesnīt "eliminate" the prompt. Instead it clicks the Yes button every time the dialog pops up. So you never know whether your code forced that dialog or any other bad one. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.vbOffice.net -- Thank you for your help. I have now with success used a tool from http://www.contextmagic.com/ called ClickYes Pro. This tool eliminates the warning message that pops up when I'm using the SaveAs method on the mail item. I then saved the mail as HTML (or TXT) and after that I could convert to PDF using Microsoft Word and Adobe Distiller. Morten |
#8
|
|||
|
|||
![]()
Morten,
To switch off Outlook security you can aslo use Outlook Security Manager from http://www.add-in-express.com/outlook-security/ Regards, Svetlana Cheusheva |
#9
|
|||
|
|||
![]()
I think priasoft has some tools that will convert email to PDF, TIFF,
PNG, ect. May help you out. www.priasoft.com L8r |
#10
|
|||
|
|||
![]() Quote:
get the MSG to PDF Converter tool of Birdie Software Its really gives you the solution..i have also faced such issue..then i get Birdie bMSG to PDF Converter/b tool...& its give me the result.. Get this software from http://www.birdiesoftware.com/eml-to-doc/buy.html many many thnx to Birdie Software... you rock guys... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
If you need to open, read, print, or convert Outlook based MSG files.. | [email protected] | Outlook and VBA | 3 | May 12th 06 07:37 AM |
Convert e-mails with oversized images to PDF format | [email protected] | Outlook - Using Forms | 0 | April 10th 06 03:09 PM |
How do I convert an incoming TIFF fax to a Adobe PDF? | Bob | Outlook - Installation | 1 | April 4th 06 09:41 PM |
how to convert msg files | BorisBierbelly | Outlook - General Queries | 9 | March 2nd 06 06:33 PM |
.pdf files in calendar | LPSTony | Outlook - Calandaring | 0 | January 26th 06 04:20 PM |