opening Outlook through javascript

You can definitely do this, the code looks like: var objO = new ActiveXObject(‘Outlook.Application’); var objNS = objO.GetNameSpace(‘MAPI’); var mItm = objO.CreateItem(0); mItm.Display(); mItm.To = p_recipient; mItm.Subject = p_subject; mItm.Body = p_body; mItm.GetInspector.WindowState = 2; p_recipient, p_subject & p_body being variables, passed in. You need to ensure this is running on a webpage which users … Read more

What can you do with COM/ActiveX in Python? [closed]

First you have to install the wonderful pywin32 module. It provides COM support. You need to run the makepy utility. It is located at C:\…\Python26\Lib\site-packages\win32com\client. On Vista, it must be ran with admin rights. This utility will show all available COM objects. You can find yours and it will generate a python wrapper for this … Read more

Blocking dialogs in .NET WebBrowser control

And for an easy way to inject that magic line of javascript, read how to inject javascript into webbrowser control. Or just use this complete code: private void InjectAlertBlocker() { HtmlElement head = webBrowser1.Document.GetElementsByTagName(“head”)[0]; HtmlElement scriptEl = webBrowser1.Document.CreateElement(“script”); string alertBlocker = “window.alert = function () { }”; scriptEl.SetAttribute(“text”, alertBlocker); head.AppendChild(scriptEl); }

Are ActiveX Controls Disabled?

From other forums, I have learned that it is due to the MS Update and that a good fix is to simply delete the file MSForms.exd from any Temp subfolder in the user’s profile. For instance: C:\Users\[user.name]\AppData\Local\Temp\Excel8.0\MSForms.exd C:\Users\[user.name]\AppData\Local\Temp\VBE\MSForms.exd C:\Users\[user.name]\AppData\Local\Temp\Word8.0\MSForms.exd Of course the application (Excel, Word…) must be closed in order to delete this file.

Differences between Excel’s Form Controls & ActiveX Controls

There is [eternal] confusion surrounding the two types of controls available to Excel — exacerbated by the contrasting terminology used by different online sources. This is only a general overview of the differences between Form Controls and ActiveX Controls (based on my old notes that helped me finally figure out the differences!) Visit the included … Read more

Print directly from browser without print popup window [duplicate]

I couldn’t find solution for other browsers. When I posted this question, IE was on the higher priority and gladly I found one for it. If you have a solution for other browsers (firefox, safari, opera) please do share here. Thanks. VBSCRIPT is much more convenient than creating an ActiveX on VB6 or C#/VB.NET: <script … Read more