Printing MSG file failed. Why?

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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

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

nycboy

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



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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

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?
 
N

nycboy

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?
<nycboy> wrote in message news:[email protected]...




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

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]...




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
N

nycboy

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]...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top