A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to convert MSG files to PDF



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 06, 09:10 AM posted to microsoft.public.outlook.program_vba
MortenL
external usenet poster
 
Posts: 3
Default How to convert MSG files to PDF

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  
Old April 26th 06, 06:56 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How to convert MSG files to PDF

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  
Old April 26th 06, 09:43 AM posted to microsoft.public.outlook.program_vba
MortenL
external usenet poster
 
Posts: 3
Default How to convert MSG files to PDF

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  
Old April 26th 06, 02:45 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How to convert MSG files to PDF

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  
Old May 3rd 06, 04:45 AM posted to microsoft.public.outlook.program_vba
Kevin
external usenet poster
 
Posts: 85
Default How to convert MSG files to PDF

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  
Old May 3rd 06, 02:07 PM posted to microsoft.public.outlook.program_vba
MortenL
external usenet poster
 
Posts: 3
Default How to convert MSG files to PDF

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  
Old May 3rd 06, 03:15 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How to convert MSG files to PDF

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  
Old May 19th 06, 05:26 PM posted to microsoft.public.outlook.program_vba
Svetlana Cheusheva
external usenet poster
 
Posts: 1
Default How to convert MSG files to PDF

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  
Old May 19th 06, 10:42 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default How to convert MSG files to PDF

I think priasoft has some tools that will convert email to PDF, TIFF,
PNG, ect. May help you out. www.priasoft.com

L8r

  #10  
Old July 15th 10, 01:28 PM
iadrien iadrien is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2010
Posts: 1
Wink

Quote:
Originally Posted by MortenL View Post
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
Hi....

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 04:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2025 Outlook Banter.
The comments are property of their posters.