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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 5th 10, 06:40 AM posted to microsoft.public.outlook.program_forms
WLAN
external usenet poster
 
Posts: 49
Default Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working

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.maPri nt,
User32.GetForegroundWindow());
}

What would be the issue?


Ads
  #2  
Old March 8th 10, 05:44 PM posted to microsoft.public.outlook.program_forms
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working

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
-
"wlan" wrote in message
news
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.maPri nt,
User32.GetForegroundWindow());
}

What would be the issue?




 




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
MailItem printout() wlan Outlook - Using Forms 0 March 4th 10 05:17 PM
RDOMail object is not working in different thread. Sandeep K[_2_] Add-ins for Outlook 13 September 12th 09 12:16 PM
Redemption not working on OL2007 Peter Hibbs Outlook and VBA 2 June 5th 09 03:19 PM
Redemption not working :( [email protected] Add-ins for Outlook 6 June 22nd 06 03:12 PM
printOut adubb Outlook - Using Forms 1 May 25th 06 08:49 PM


All times are GMT +1. The time now is 11:44 AM.


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