Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
below is the code which i use to access a url through a excel add-in.

This works perfectly fine in windows xp office 32 bit, windows 7 office 32 bit, but DOESNOT work in Windows 7 Office 64 bit.

Kindly help.

We have a web browser by name webBrowserChat as shown below.
System.Windows.Forms.WebBrowser webBrowserChat;

HtmlElement buttonConnect = webBrowserChat.Document.GetElementById("sendData");
object obj = buttonConnect.DomElement;
System.Reflection.MethodInfo mi = obj.GetType().GetMethod("click");
mi.Invoke(obj, new object[0]);
Posted
Updated 3-Jun-13 19:32pm
v2

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