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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
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 |