Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working

W

wlan

Hi,

I want to print an e-mail from inspector window. When I do the same using
the below code. it invokes Save As dialog.

OUTLOOKLib.NameSpace nms = m_oApp.GetNamespace("MAPI");
Redemption.RDOSession rdoSession = new
Redemption.RDOSession();
rdoSession.MAPIOBJECT = nms.MAPIOBJECT;

//entryID & storeID is non-empty
if (entryID != "" && storeID != "")
{
//get RDOMail object and initiate print action
Redemption.RDOMail rdoMail =
rdoSession.GetMessageFromID(entryID, storeID, false);
rdoMail.MessageClass = mi.MessageClass;


rdoMail.DoAction(Redemption.rdoMessageAction.maPrint,
User32.GetForegroundWindow());
}

What would be the issue?
 
D

Dmitry Streblechenko

You already have the message as Outlook.MailItem, calling MailItem.PrintOut
woudl be much better.
Redemption uses MAPI forms to print message, and that area of MAPI has not
received its due attention to put mildly. MailItem.PrintOut on the other
hand uses internal Outlook code to print.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

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