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

  • Thread starter Thread starter wlan
  • Start date Start date
Status
Not open for further replies.
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?
 
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)

-

"wlan" <wlan> wrote in message

news:DF077233-A5DE-4EA9-9A27-D9BF4AD1DD06@microsoft.com...
> 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?

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Auto Remove [EXTERNAL] from Subject + ConversationTopic (WITHOUT Redemption plug-in) Outlook VBA and Custom Forms 5
A Edit subject - and change conversationTopic - using VBA and redemption Outlook VBA and Custom Forms 2
N Redemption VBA basics...something's missing Using Outlook 0
D Redemption? Need rapid pull of Outlook Contacts, email + notes for VBA Using Outlook 1
J 64-bit version of Redemption? Outlook VBA and Custom Forms 2
E Redemption access AppointmentItem Label from outlook Outlook VBA and Custom Forms 6
E Redemption MAPI access(c#) Outlook VBA and Custom Forms 4
B Use Redemption to get sender's email address Outlook VBA and Custom Forms 3
M EMail1Address and EMail1AddressType strangeness using Redemption Outlook VBA and Custom Forms 2
A Creating Redemption.MAPIUtils failed with Windows 7 x64 Outlook VBA and Custom Forms 5
D href tags does not result in the full url with Redemption Outlook VBA and Custom Forms 4
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
N Redemption.RDOSession logon() stops emails sending-they stay in Ou Outlook VBA and Custom Forms 3
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
C Redemption - Rules for outlook Outlook VBA and Custom Forms 1
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
P Redemption Send EMail Outlook VBA and Custom Forms 10
S redemption reference Outlook VBA and Custom Forms 1
T Configure mailbox OutofOffice with Redemption Outlook Outlook VBA and Custom Forms 1
D redemption dll not registering in windows vista Outlook VBA and Custom Forms 3
Y Redemption MessageItem SaveAs problem Outlook VBA and Custom Forms 8
R Newbie Redemption ISafeMailItemPtr question Outlook VBA and Custom Forms 6
Q GAL.ResolveName issue with REDEMPTION Outlook VBA and Custom Forms 5
Q REDEMPTION HANGING during LOGON Outlook VBA and Custom Forms 2
P Redemption not working on OL2007 Outlook VBA and Custom Forms 2
P Redemption Send EMail fails Outlook VBA and Custom Forms 4
S delete appointmentitem permanently using redemption Outlook VBA and Custom Forms 2
D redemption - foldercreate event + delegate user Outlook VBA and Custom Forms 8
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
U Re: Read fields with Redemption Outlook VBA and Custom Forms 1
V redemption MAPIUtils Outlook VBA and Custom Forms 3
S RDOMail object is not working in different thread. Outlook VBA and Custom Forms 13
Jeanne Goodman Create Printout from Multiple Shared Calendars Outlook VBA and Custom Forms 8

Similar threads

Back
Top