cancel
Showing results for 
Search instead for 
Did you mean: 

Default mail client (CR XI)

Former Member
0 Kudos
673

Hello,

we have the following problem:

We have a application using Crystal Reports XI. It's a C++ application and not a .net, but i think that doesn't matter. One customer using this application has Lotus Notes and NOT Microsoft Outlook as mail client.

When using the Crystal Reports export function for export (any format, pdf, xls etc...) into application (not save, just open) we get a message that there is a problem with the default mail client (message box has the title "Microsoft Office Outlook"). The exact message: "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set it as the default mail client."

I have checked this an found out, that exporting into application (not save on harddisk) is never possible with CR XI, if Outlook is NOT the default mail client but another mail client is correctly registrered as default mail client.

Why and is there a solution for this problem? Or is this a Microsoft sponsored error?

Best Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Michael,

Have you tried exporting to Notes from the Crystal Reports Designer? You also need to install the Notes export dll using the custom install option.

Confirm it works in the designer first and then if if fails I transfer your case to the Report Design forum to get it working there first. Then it's simply a matter of setting the export options in code.

Also, try exporting using the viewers Export button to see it the option to export to Notes is available, if it's not then the export dll is missing.

Thank you

Don

Former Member
0 Kudos

Hi Don,

first thank you for your reply.

But i'm not trying to export to Lotus Notes. I'm trying to export directly into Adobe Acrobat, Excel etc.. But when i have selected the export format (PDF, Excel, Word etc.) and the target (application, harddisk, mapi etc.) and click on ok (if direct RDC call or using the export button in the reports viewer is the same) i always get the message "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set it as the default mail client.".

So this problem is not related to a export into mail application, but to exports in general when Outlook is NOT the default mail client. If it is, i don't get the message posted above.

So it seems that crystal performs and default mail client check befor exporting (even if not exporting to a mail client or mapi) and don't likes other mail applications then outlook

And this is my problem.

Best Regards

Michael

0 Kudos

Hi Michael,

Ah, thank you for clarifying.

The reasonning behind this is because you installed the IMAP export dll. CR assumes because it's there a mail client is installed and as you have seen complains if one is not found. The reason why MS is in the message is because it's the first one listed in the error routine.

Open Explorer and go to C:\Program Files\Common Files\Business Objects\3.0\bin and rename u2dmapi.dll to *.old and u2dpost.dll also. Mapi is the protocal Outlook uses and DPOST is for exchange server.

Thank you

Don

Former Member
0 Kudos

Hi Don,

i'm sorry, but this was not the solution.

I renamed the dll's but i still get the message when exporting.

So as a test, i've created a clean Windows XP Virtual Machine and installed our application, MFC80 Redist from Microsoft an the Crystal Report 11 Runtime. Nothing else. With this configuration i can make exports, no message appears. Then i've installed Mozilla Thunderbird. No problem too, export is working without any problems.

So it seems to me, that this could be a problem with older Crystal Report installation files? Befor version 11, there was Version 10.5 installed on my and the customer systems. With the 10.5 version the exporting was no problem, even with Lotus Notes etc.. Now we have upgraded the Crystal Report Version to 11 and we get the export message problem.

On my system there was still a "2.7/bin" folder with both dll's in it, i renamed them too. So this should not be the problem?!

Some more ideas?

Best Regards,

Michael

0 Kudos

Hi Michael,

Those are the only 2 dll's that would call outlook. Search your PC for any other copies and rename. Possibly you had a really old version of CR install, look to see if you have a folder in \windows\crystal and rename it also.

Run Modules, you can get it from the Utilities in the download section on our site. Compare your clean XP machine with the other and see what else is loading. Possibly using tool called Dependency Walker will show you what is being loaded that would case CR tou look for an outlook driver.

Thanks again

Don

Former Member
0 Kudos

Hi Don,

hope u had a nice weekend.

I've checked the dll calls with the Dependency Walker. And here, why your first solution (renaming the dll's did not work). I renamed the dll's to "u2dmapi.dll__old". But it seems that this is still the same as .dll, the application is still loading the renamed file. Now i renamed them to .old (how u said ... g) and it's working, no more message appears while exporting. I will check this on the systems of our customer, but i think thats the solution. Here on my system it's working.

So i will check an post here what's the result. But thank you at all.

Best Regards

Michael

Former Member
0 Kudos

Okay, it works. Problem solved.

Thank u Don!

ido_millet
Active Contributor
0 Kudos

Hi Don,

Using XI R2, the solution above (renaming u2dmapi.dll and u2dpost.dll to *.old) for avoiding the no email client message doesn't work when using Merge Modules to deploy. When the application loads, automatic repair causes the 2 dlls to be recreated from the msi file.

Is there a better solution by now. Perhaps some registry entry that avoids this warning message. It doesn't make sense in the context of trying to export to Disk.

Thanks,

- Ido

0 Kudos

Hi Ido,

Can you post a new question and just copy the link to this one. It's been marked as answered.

Thanks

Don

Answers (0)