Printing MSG file failed. Why?

  • Thread starter Thread starter nycboy
  • Start date Start date
N

nycboy

Hi,

I tried to print saved MSG files from file folder
to printing device with following two methods, but
both were failed (nothing happening).

Way 1: From shell

"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /p
"C:\file1.msg"

Way 2: From VB code

...
Dim Scr As Short
...
Scr = GetDesktopWindow()
rtn = ShellExecute(Scr, "Print", _
"c:\file1.msg", "", _
"c:\", SW_SHOWNORMAL)

But similar commands seem working fine for other
office file types.

Can anyone help me to find out the reason? Thanks!


David
 
Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
 
Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Can you successfully drag an .msg file to a printer icon?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
 
Yes, I can. But again, it went into silence.
Nothing coming out from printer (and it seems
not adding into printing queue).

David

--- Original Message ----

Re: Printing MSG file failed. Why?


Can you successfully drag an .msg file to a printer icon?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
 
Sounds like there's a problem with the print action on your machine. On mine
with Outlook 2003 Sp1, it works fine. The settings are:

Application: "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /p
"%1"
Use DDE: enabled
DDE Application: OUTLOOK
DDE Topic: System

Other boxes are blank.

You might try using Help | Detect and Repair.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Yes, I can. But again, it went into silence.
Nothing coming out from printer (and it seems
not adding into printing queue).

David

--- Original Message ----

Re: Printing MSG file failed. Why?


Can you successfully drag an .msg file to a printer icon?


Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
<nycboy> wrote in message news:[email protected]...
 
Thanks, Sue.

I am using Outlook 2000. By the way, I installed
the same version of Outlook on a brand new machine
and it has the same problem. But I don't want
to upgrade it to introduce the annoying security
popups.

Is there a way programmatically print the MSG files
besides this /p option?

David

---- Original Message ----

Re: Printing MSG file failed. Why?


Sounds like there's a problem with the print action on your machine. On
mine
with Outlook 2003 Sp1, it works fine. The settings are:

Application: "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /p
"%1"
Use DDE: enabled
DDE Application: OUTLOOK
DDE Topic: System

Other boxes are blank.

You might try using Help | Detect and Repair.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Yes, I can. But again, it went into silence.
Nothing coming out from printer (and it seems
not adding into printing queue).

David

--- Original Message ----

Re: Printing MSG file failed. Why?


Can you successfully drag an .msg file to a printer icon?


Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
<nycboy> wrote in message news:[email protected]...
 
Another option would be to use the third-party Redemption library to import
the .msg file into the appropriate type of Outlook item, then use the
Outlook item's PrintOut method.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Thanks, Sue.

I am using Outlook 2000. By the way, I installed
the same version of Outlook on a brand new machine
and it has the same problem. But I don't want
to upgrade it to introduce the annoying security
popups.

Is there a way programmatically print the MSG files
besides this /p option?

David

---- Original Message ----

Re: Printing MSG file failed. Why?


Sounds like there's a problem with the print action on your machine. On
mine
with Outlook 2003 Sp1, it works fine. The settings are:

Application: "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /p
"%1"
Use DDE: enabled
DDE Application: OUTLOOK
DDE Topic: System

Other boxes are blank.

You might try using Help | Detect and Repair.

Yes, I can. But again, it went into silence.
Nothing coming out from printer (and it seems
not adding into printing queue).

David

--- Original Message ----

Re: Printing MSG file failed. Why?


Can you successfully drag an .msg file to a printer icon?


Hi Sue,

Thanks for your reply.

File type MSG listed as Outlook Item and is specified
opening with Microsoft Outlook. In actions window,
both Open (default) and Print actions are defined.
In action editing window, checkbox "Use DDE"
is checked, however "DDE Message" and "DDE Application Not Running" are
blank.

David

---- Original Message ----

Re: Printing MSG file failed. Why?
From: Sue Mosher [MVP-Outlook]
Date Posted: 8/11/2004 5:47:00 AM



Check the File Types in Windows Explorer -- Tools | FOlder Options. What
application is set up for printing .msg files?
<nycboy> wrote in message Hi,

I tried to print saved MSG files from file folder
to printing device with following two methods, but
both were failed (nothing happening).

Way 1: From shell

"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /p
"C:\file1.msg"

Way 2: From VB code

...
Dim Scr As Short
...
Scr = GetDesktopWindow()
rtn = ShellExecute(Scr, "Print", _
"c:\file1.msg", "", _
"c:\", SW_SHOWNORMAL)

But similar commands seem working fine for other
office file types.

Can anyone help me to find out the reason? Thanks!


David
 
Back
Top