Mapi Export Using Switches

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Shawn_(Guest)
Posts: 14
Joined: Tue Oct 10, 2017 12:44 pm

Mapi Export Using Switches

Post by Shawn_(Guest) » Tue Jan 03, 2006 6:36 pm

I am using version R&R 10+ with all latest updates.____I am shelling out to the RRWRUN.EXE with multiple switches and need to know how to also incorporate the "/M" switch. Below is my current expression that is being shelled...____RRWRUN.EXE C:VBSCMSRUNIN 26/MPDFCurr /WY /OC:VBS1150742.CMS /B /DC:VBSDMODATA\____"PDFCurr" is the RRW report that I am using for this test.____I have also tried using this expression...____RRWRUN.EXE C:VBSCMSRUNIN 26/M /WY /OC:VBS1150742.CMS /B /DC:VBSDMODATA\____...since my CMSRUNIN record held the library and all my required aliases for the report. I don^t get any errors but get the same result, a print out. I ultimately want it to export the report using MAPI so that the report is emailed to the customer^s email address. I went into the "Export" window and clicked HTML (I have hit Edit and referenced "Invoice.HTM" as the Export File Name) and clicked "Send via MAPI". In the Mail Options window I have the "Send Burst Report" highlighted with the Burst Level set to the transaction #. The Send To is set to an aliased data field that contains the email address. I have something simple in the Subject and Body fields. When I run my app it simply prints the report without emailing. What am I doing wrong?____Sincerely,__Desperate Developer

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Mapi Export Using Switches

Post by kfleming » Wed Jan 04, 2006 9:28 am

The /M switch requires that a report name be specified after the M and that the report use the saved MAPI export settings. You cannot use a control file.____Kathleen__R&R Support

Shawn_(Guest)
Posts: 14
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Mapi Export Using Switches

Post by Shawn_(Guest) » Wed Jan 04, 2006 10:24 am

Thank you very much for the quick response! That is what I thought. Do you know why the 1st example I provided would not work? I passed a file name in that one but it still did not export to the MAPI. Should I not have a control file?____Shawn

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Mapi Export Using Switches

Post by kfleming » Thu Jan 05, 2006 11:05 am

You cannot use a control file.__The command line format needs to be:____RRWRUN.EXE /M"path.reportname"____such as____RRWUN.EXE /M"C:/myreports/MAPITEST.RRW"____and the saved report needs to have a set the mail export options and export desination.____Kathleen __R&R Support

Shawn_(Guest)
Posts: 14
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Mapi Export Using Switches

Post by Shawn_(Guest) » Thu Jan 05, 2006 11:35 am

Thank you once again! One last question...can I still pass it the CMSRUNIN info so that the aliasing will still work? I need to because the file names will constantly change and I need to utilize the power of the aliases.____Thanks,__Shawn

Post Reply