取消
显示结果 
搜索替代 
您的意思是: 

Automating MS Outlook

已解决!
转到解答

Hello everyone,

 

I want to automate MS Outlook using ActiveX. My requirement is to fill the address line of a new mail through LabVIEW.

 

Thanks in advance

cooldude 

0 项奖励
1 条消息(共 14 条)
5,701 次查看

Use Google to find examples on how to use the Outlook Automation Objects. Then, you can replicate the code in LabVIEW.

 

Why do you need to go through and automate Outlook? Why can't you just send the email from LabVIEW? 

2 条消息(共 14 条)
5,694 次查看
You should also try searching the NI site. It's not difficult. Just type a few words in the search text box and hit enter. Try it.
3 条消息(共 14 条)
5,672 次查看

Searching the NI database is a waste as the vi's and files are all out of date, 2006 or older.  That was a very un-helpful, generic, answer to a very specific question that I to am now faced with.

 

So again, what active-X or tool allows LabVIEW 8.2 to interact with Outlook 2007 to send e-mails?

 

I need to go through Outlook as IT has closed down access to GMail.  Outlook is the only option available.

Message Edited by Drewski on 02-16-2010 07:17 PM
0 项奖励
4 条消息(共 14 条)
5,586 次查看
Maybe the links are older, but the concept of how to do it shouldn't have changed much.  You may need to relink any VI's you download to the newer ActiveX objects.  But you would probably have needed to do that in 2006 also.
0 项奖励
5 条消息(共 14 条)
5,582 次查看

Okay, I downloaded the September 2006 example and it worked for sending an e-mail after I deleted the defered time option, and set the email address.

 

How is the "Outlook._Application" control on the front panel of the "Create Outlook Mail Message.vi" created?

 

What are the steps required for a person to create it again from scratch?

0 项奖励
6 条消息(共 14 条)
5,571 次查看

Drewski wrote:

Searching the NI database is a waste as the vi's and files are all out of date, 2006 or older.  That was a very un-helpful, generic, answer to a very specific question that I to am now faced with.

 

So again, what active-X or tool allows LabVIEW 8.2 to interact with Outlook 2007 to send e-mails?

 

I need to go through Outlook as IT has closed down access to GMail.  Outlook is the only option available.

Message Edited by Drewski on 02-16-2010 07:17 PM

The links are as current as your version of LabVIEW so I don't understand the whining or the attitude. I will also ask the question as to why you don't use the built-in email functions? ActiveX and Outlook is so much slower.

0 项奖励
7 条消息(共 14 条)
5,570 次查看

Obviously I was under the impression that a seperate piece of software was required to use ActiveX to control Outlook.  Now that I've been schooled, I see that is not the case.  It turns out the ActiveX thing is already installed AND that LabVIEW already has access to the already installed ActiveX thing.

 

The reason I need to use the slow ActiveX and Outlook combination is that IT has shut down access to internet mail servers, gmail, yahoo mail, hot mail, my local ISP webmail and also, IT does not provide an simple SMTP server. 

0 项奖励
8 条消息(共 14 条)
5,563 次查看
Well, they have to provide something. After all, how do you think Outlook sends its email? Outlook is just a client; it has no SMTP server - it must communicate with one. Do you have an Exchange Server? Do you know if you connect to it using IMAP or SMTP?
9 条消息(共 14 条)
5,548 次查看

Yes, it is an Exchange Server.  If it's a choice between only IMAP and SMTP, I would say it was IMAP as I know SMTP doesn't work.

 

Everything (LabVIEW -> ActiveX -> Outlook -> sending emails) is working as of now, so I will no longer be monitoring this thread.

 

Thanks for all o' your helpses, good luck!

0 项奖励
10 条消息(共 14 条)
5,542 次查看