Questions tagged [microsoft.mshtml]

MSHTML (also known as Trident ) is a proprietary layout engine for the Microsoft Windows version of Internet Explorer, developed by Microsoft.

MSHTML (also known as Trident ) is a proprietary layout engine for the Microsoft Windows version of Internet Explorer, developed by Microsoft.

It was first introduced with the release of Internet Explorer version 4.0 in October 1997; it has been steadily upgraded and remains in use today. For versions 7 and 8 of Internet Explorer, Microsoft made significant changes to the Trident layout engine to improve compliance with web standards and add support for new technologies.

40 questions
1
vote
1 answer

ABCPDF with MSHTML engine not loading .JPG files

I am using ABCPDF and using the MSHTML engine for a certain report. It loads .PNG files fine, and our extensionless handler images, but when it comes to .jpg it shows an X. The pure HTML loads fine, but converting the html to PDF it doesnt…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
1
vote
2 answers

How can I close the newly opened Internet Explorer using the mshtml

I want to close a newly opened Internet Explorer using the mshtml. I have a program , which takes values from different IE Window. The navigation to each Window is invoked using the Click() method of element. Once process the page, I want to…
Unni Krishnan
  • 94
  • 3
  • 9
1
vote
1 answer

How to execute javascript using the mshtml

mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)IE.Document; object script= doc.Script; object[] args = { FirstArgument , "FrameContent", "tree.aspx", "FrameNav" }; script.GetType().InvokeMember("ZweiFrames", …
Unni Krishnan
  • 94
  • 3
  • 9
1
vote
1 answer

How to Redraw/Repaint an IHTMLElement pointing to an image element in the DOM in IE9?

I've got a valid IHTMLElement object that points to an image in IE9. The image data was recently updated via an IDirectDrawSurface. I'm trying to find a way to force IE9 to repaint the image in the DOM after I update the image data. Could anyone…
1
vote
2 answers

problems with "getElementsByClassName" in MSHTML.HTMLDocument

The problem happens only when used getElementsByClassName Dim HTTP As New MSXML2.XMLHTTP60 HTTP.open "POST", strWWW, False HTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" HTTP.setRequestHeader…
1
vote
4 answers

ClickOnce Deployment, system update required Microsoft.mshtml

We have an application that works with MS Office and uses Microsoft.mshtml.dll. We use ClickOnce to deploy the application. The application deploys without issues on most machines, but sometimes we get errors saying "System Update Required,…
moza
  • 84
  • 1
  • 6
1
vote
1 answer

C# - mshtml and SHDocVw Complete Documentation

I'm not sure if this is a valid question here but I am having a hard time finding proper documentation for these 2 DLLs, mshtml and SHDocVw. I'm trying to do some automation using these 2 DLLs. To do that, I must read and understand first what…
1
vote
1 answer

Web Elements Captuing using mshtml and shdocview vb.net/C#

I want to design a WPF page where we can capture web screen elements. This should work something similar to IE F12(DOM Explorer) select element option. Can anybody please suggest where to start. Thanks in advance
user6734638
1
vote
0 answers

Native Image of Microsoft.mshtml referencing IL assembly cannot be loaded

Problem I have a WPF Application that is referencing Microsoft.mshtml Primary Interop Assembly. I'm creating a native image of my app using NGen. I'm afraid the native image is never being loaded if I start my app. Reproduction Info E.g. create new…
tstadel
  • 31
  • 5
1
vote
0 answers

How to invoke onchange, onblur events of a DOM element inside WPF WebBrowser

I've tried a lot to find a solution of invoking DOM events of the loaded document of WPF WebBrowser. Here's a code to invoke click event- mshtml.IHTMLDocument2 htmlDoc = webBrowser.Document as…
0
votes
1 answer

Include post variables in a createDocumentFromUrl call in .NET

I have a project in Visual Basic 2010 Express that parses web pages use the IHTMLDocument object. Here is the function I am using to retrieve a web page: Private Function GetHTML(ByVal url As String) Dim htmldoc As New HTMLDocument() Dim…
zeke
  • 3,603
  • 2
  • 26
  • 41
0
votes
0 answers

How to access the inner DOM document from Selenium Webdriver?

I've been having a lot of problems using Selenium Webdriver and I've given up using it. When I access a page with 11600 lines, it stops responding to commands like "FindElement". I would like to have access to the DOM document from the Webdriver…
0
votes
1 answer

Could not load file or assembly microsoft.mshtml in Telerik Reporting

I'm using Telrik Reporting and after opened the trdp file in order to modify it , when I select a bloc section to edit it , I got this error : Note: I have already added Microsoft.mshtml in Visual Studio 2019 and Copy local option is set to true…
user14743092
0
votes
0 answers

Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.HTMLDocument'

trying to attach to an IE browser.. it works for awhile then starts throwing this error... --------------------------- --------------------------- Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.HTMLDocument'. This…
0
votes
1 answer

InvalidCastException when reading mshtml.HTMLDocument.Script property

Trying to read the mshtml.HTMLDocument property results in the following exception: An unhandled exception of type 'System.InvalidCastException' occurred in mscorlib.dll Additional information: Specified cast is not valid. occurred This is happening…
Eric Scherrer
  • 3,328
  • 1
  • 19
  • 34