Questions tagged [mshtml]

MSHTML was introduced in Microsoft Internet Explorer 4.0. It is the main HTML component of the Internet Explorer browser and can be used in other applications. It hosts Microsoft ActiveX Controls and supports the OLE Control '96 (OC96) specification for windowless controls.

MSHTML frequently comes into play when a WPF or WinForms application hosts a web browser control. To access MSHTML, the 'Add Reference' dialog is used as shown in the figure below...

Locating the MSHTML assembly

Reference articles for MSHTML can be found here

444 questions
0
votes
1 answer

invoking Javascript to return data for web scrape

I'm attempting to write a web scraping app and am having problems with a site that runs some JavaScript to generate the data I require after the page has loaded. The page runs this javascript when the page has finished loading: $(document).ready(…
0
votes
0 answers

mshtml how to hook into document's readystatechange event

I'm converting an IE window's handle to mshtml.HTMLDocumentClass using the way as described here. There are a couple of really weird things happening here. When I hook into the onreadystatechange event for frame document (get the frame using…
shashank
  • 123
  • 9
0
votes
1 answer

How to reference mshtml.dll in a windows phone 8 project?

Based on this article, windows phone 8 has Trident (mshtml). So, how can I add the reference to it in a WP8 project?
MaruTaru
  • 27
  • 5
0
votes
2 answers

Using mshtml to set contentEditable, prevent selecting div

My current project involves working with a document editor that, for better or worse, is implemented using mshtml and setting contentEditable to true. We're certainly considering replacing this setup with something else, but for the moment assume it…
WillfulWizard
  • 5,340
  • 2
  • 19
  • 15
0
votes
1 answer

ShowHTMLDialog and buttons style

I use the win32 ShowHTMLDialog function to display in my application an HTML popup that contains some standard HTML buttons. But for some reasons, these buttons are not rendered the same way they are in IE: they are not rounded and there is no 3D…
0
votes
1 answer

System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Collections.IEnumerable'

I am getting the exception below when casting an object as IEnumerable. This is part of my automation project which was built using VS2008 and was meant to run on IE8, now I am trying to use VS2010 and run on IE9. System.InvalidCastException:…
user3331045
  • 17
  • 1
  • 2
0
votes
2 answers

How to perform Zooming with CHtmlEditCtrl in MFC

Can anyone help me to perform zooming on CHtmlEditCtrl ? I displayed my html document on CHtmlEditCtrl. Now I want my edit control to display same html document with different zooming level. I saw this feature in InternetExplorer8. Now I need to add…
Milan Dhameliya
  • 129
  • 1
  • 10
0
votes
1 answer

Retrieve information from Table cell

I'm reading the page loaded in the WebBrowser control from my WPF application. There is a table of data in this page that I need to capture it and I'm using MSHTML for it. I can retrieve the table, I can retrieve the rows from the table, I just…
André Silva
  • 1,149
  • 9
  • 30
0
votes
1 answer

Looking for an MSHTML wrapper for C++

I'm working with MSHTML API lately, and I find it very inconvenient. I'm more used to WinAPI then COM programming, so maybe it's just me, but consider the following example of querying the rectangle of an element; Expectations: RECT rc; hr =…
Paul
  • 6,061
  • 6
  • 39
  • 70
0
votes
0 answers

IE BHO: SAP Netweaver portal page doesnt trigger any browser events

Im trying to create a BHO for a SAP Netweaver portal webgui and I have no idea on how SAP Netweaver works. The user selects an option from a combo box and that opens up another web form. The user fills up the form and presses "Enter" and that kinda…
0
votes
1 answer

mshtml HTMLDocument createDocumentFromUrl in vb.net

How to use createDocumentFromUrl in vb.net. I got information like we should use IPersistStreamInit interface if we want to work on this. So i want an example showing this.
IT researcher
  • 3,274
  • 17
  • 79
  • 143
0
votes
1 answer

No overload for method 'setAttribute' takes '2' arguments

I'm having trouble to set a new attribute to the element, VS 2005 returns me the following error on the code below: Error 1 No overload for method 'setAttribute' takes '2 'arguments Error 2 No overload for method 'setAttribute' takes '2…
Jean Coelho
  • 13
  • 1
  • 4
0
votes
1 answer

Reading material on hosting MSHTML.DLL directly (not WebBrowser)?

Can anyone suggest good reading material on hosting MSHTML.DLL/Trident directly (not SHDOCVW.DLL/WebBrowser)? I want to use it for GUI elements, sometimes major ones, in C++. I need HTML rendering, JavaScript with extra host-provided DOM methods and…
crackers
  • 153
  • 1
  • 3
  • 8
0
votes
1 answer

Get HTML from existing instance of Internet Explorer from Delphi

On a specific website, If I open a new instance of IE, I'm already authenticated, as long as there at the same time is another open instance of IE where I previously have logged in. If I open a tWebbrowser from Delphi, I'm not authenticated. Since…
Peter
  • 11
  • 2
0
votes
1 answer

Web Automation Using MSHTML

We want to automate a web application which is developed in asp.net. For automating this site we are planning to use the MSHTML. But before finalizing MSHTML I would like to know if there are any known limitations of MSHTML or please share list of…
NewAutoUser
  • 533
  • 2
  • 10
  • 26