How can I launch Outlook on users machines when they click a button on a web
form (InfoPath)?
Thanks
Jul 3 '08
23 5977
Scott M. wrote:
You cannot create ActiveX controls using .NET. An ActiveX control is a
compiled COM application that downloads to the user's client browser and
attempts to execute there. There is no such equivelent in .NET.
"John Daragon" <jo**@argv.co.u kwrote in message
news:48******** **************@ news.zen.co.uk. ..
>andyoye wrote:
>>How can I launch Outlook on users machines when they click a button on a web form (InfoPath)?
There is no way to open Outlook directly from the HTML of a web page, nor from the C# "code behind" which is executed on the server running IIS.
If, however, you are programming for your own intranet, or can guarantee that the user is running IE and will execute code from your site with enough privelege, you can write an embedded activeX control and call it from javascript within your page. Because the ActiveX control will download to the client and run there, you can do more or less anything you could do in a normal user program.
Of course, if you write the ActiveX control in C#, you're dependent on the correct version of .NET already being installed on the client machine, too.
Oh yes there is. I've written them.
"John Daragon" <jo**@argv.co.u kwrote in message
news:48******** **************@ news.zen.co.uk. ..
Oh yes there is. I've written them.
No, you haven't. You can write .NET components that expose themselves to
COM via InterOp. But, the .NET Framework does not emit native ActiveX
components (which are COM objects).
Scott M. wrote:
"John Daragon" <jo**@argv.co.u kwrote in message
news:48******** **************@ news.zen.co.uk. ..
>Oh yes there is. I've written them.
No, you haven't. You can write .NET components that expose themselves to
COM via InterOp. But, the .NET Framework does not emit native ActiveX
components (which are COM objects).
Oh, for heaven's sake... The difference (in this context) is ?
The difference is that you are telling the OP that you can do something that
you can't.
If you don't even know what technology you are using, how can you be of
help? Your advice is just going to confuse matters for someone who
obviously is new to .NET development.
"John Daragon" <jo**@argv.co.u kwrote in message
news:48******** **************@ news.zen.co.uk. ..
Scott M. wrote:
>"John Daragon" <jo**@argv.co.u kwrote in message news:48******* *************** @news.zen.co.uk ...
>>Oh yes there is. I've written them. No, you haven't. You can write .NET components that expose themselves to COM via InterOp. But, the .NET Framework does not emit native ActiveX components (which are COM objects).
Oh, for heaven's sake... The difference (in this context) is ?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daniel Pope |
last post by:
Hello Everybody,
I'm preparing for doing a daunting task: to access Out look Microsoft
Outlook Express(regardles the operating system and Outlook version) from a
Java applet (after the client (user) acknowleges to run this applet on his
machine).
The user has to read the existent user Microsoft Outlook users accounts and
to setup another Microsoft Outlook user accont.
As I know so far, that the only way is to access from the applet a...
|
by: lauren quantrell |
last post by:
Is there a way to open the MS Outlook address book using VBA and then
be able to do something with the return value?
I want users to click an icon to open the Outlook address book then
when an address is selected, populate an Access field with the address.
Is this remotely possible?
Thanks,
lq
|
by: Siv |
last post by:
Hi,
A little while ago I asked if anyone could help me with how to create an
email using MS Outlook that contained an embedded picture file.
Thanks to Jay Harlow I was able to get this working using a code example
from http://www.outlookcode.com/d/code/htmlimg.htm that details the
procedure and with a bit of tweaking I managed to get it working really
well.
I now find that there is a new user on a laptop that always gets an error at...
|
by: Snig |
last post by:
Hi
I'm into creating a web application in C# (.NET Framework 1.1) which
would list and manage the outlook tasks.
If I try to do this in a Windows Application, it works fine. But there
are many issues in case of Web application.
Code:
Outlook.Application app = new Outlook.Application();
|
by: Brad |
last post by:
I have a win2003 server workstation with multiple webs, each web has it's
own ip address. In VS2005, if I select to open an existing web site, select
Local IIS, the dialog correctly displays a list of all of my webs, however
if I attempt to open a site under and web other than localhost I receive the
message:
"Unable to open the Web 'http://localhost/anywebappname'. The Web
'http://localhost/anywebappname' does not exist"
Obviously...
| |
by: bobdydd |
last post by:
Hi Everybody
Access 2000, Outlook 2000 Windows XP
I am running the code below to open Microsoft Outlook from a Command
Button. It works fine until I tried it on a machine that has Office
installed on something other than the "C" drive.
So can anyone advise me how to open Outlook by using a relative path
rather than the code I am using here.
|
by: C |
last post by:
Hi,
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and set
the body text.
Is this possible?
C.
|
by: keri |
last post by:
Hi,
I use the below for the user to view their outlook calendar
Sub DisplayInbox()
Dim myolApp As Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Dim myFolder As Outlook.MAPIFolder
Set myolApp = CreateObject("Outlook.Application")
Set myNameSpace = myolApp.GetNamespace("MAPI")
|
by: John |
last post by:
Hi
I have an Outlook add-in solution which includes a setup project. If I
install the Outlook add-in by right clicking on the setup project and
sleeting Install then the add-in gets installed fine in Outlook. However if
I use the setup generated in the setup project Release folder then even
though setup runs and finishes, the Outlook Add-in does not appear in
Outlook. What is the problem and how can I fix it?
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |