Click here to Skip to main content
15,905,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application I need to click on a link and it should open Outlook's New Contact Card dialog box. After that user can add the details and save it.

Is there any other way I can do this? I just need to open the Create new Contact dialog.

Or

Is there any way I can open a contact file placed in application temp folder in client machine's outlook?

Thanks in Advance.

What I have tried:

I have tried it two ways.

1. Add outlook interop reference in solution and create outlook application object. But this does not work when the application gets hosted.

2. Use activeX to create outlook object in javascript. This works perfectly fine in IE but ActiveX is not supported by chrome, so it does not work in chrome.
Posted
Comments
F-ES Sitecore 3-Jul-16 18:55pm    
The best you can probably do is to create a vcf file (vCard) and push that to the client.

http://tech.just4sharing.com/Pages/tech/Creating-vCard-with-.NET.aspx

That shows how to create text of the right format but rather than saving to a file on the server you can stream it to the client, google how to download a file to the client for sample code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900