Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
136 views

My code: uses System.SysUtils, MSHTML, ActiveX, SHDocVw; implementation procedure TForm1.FormCreate(Sender: TObject); begin WebBrowser1.Navigate('google.com'); end; procedure TForm1....
 GhostVento 's user avatar
0 votes
1 answer
53 views

The issue in my script arises from incorrect usage of the Smarty variable to access the host alias (host_alias). While I correctly utilized the $service.host_name variable to display the host name, ...
Nouhaila elkhelfaoui's user avatar
0 votes
1 answer
376 views

I am using an instance of the IHTMLDocument2 interface to parse some HTML as described in this post: Load from IPersistMoniker takes long time to load unresolvable URL The code is relatively simple: ...
Coder12345's user avatar
  • 3,833
2 votes
1 answer
167 views

I'm using a TWebBrowser to display a WYSIWYG HTML editor and I've added some handlers to catch keyboard and mouse events so I can integrate this editor into my application flow. This browser is ...
Héctor C.'s user avatar
0 votes
1 answer
334 views

I need to click ('href' ) on the called 'WS557568037 / Personal Workspace' butnothing has worked. I have tried this code: 'Dim htmlElement As MSHTML.IHTMLElement For Each htmlElement In HTML....
AV114's user avatar
  • 41
1 vote
0 answers
482 views

I have a Powershell script that opens an html file saved locally and parses the file. When it is run from the server where it was created it works fine. However, when I run it from the server where it ...
user2073183's user avatar
1 vote
0 answers
305 views

I am trying to access an element from a website, however, it is not returning the complete element. <div id="playcontainer" class="play bigger isnd"> <div id="dooplay_player_response"&...
Ruben R.'s user avatar
1 vote
1 answer
1k views

I want identify in an HTML document whether an Iframe has loaded or not. Here is what I tried, but I am pretty not sure if this is the right way to identify the loading of IFrame: var myhtmlDocument =...
DotNetSpartan's user avatar
0 votes
1 answer
473 views

I have a problem getting hyperlinks from IHTMLDocument2 in Delphi. For instance, instead of returning the full link "http://ena.ge/explanatory-online", IHTMLDocument2 returns "about:/explanatory-...
Rati2019's user avatar
0 votes
1 answer
265 views

I'm working on an addin in outlook using VB .Net that views an html window in the reading pane using mshtml interface. The page has some javascript code which I call using IHtmlWindow2.execScript. I ...
Reem A.'s user avatar
2 votes
1 answer
205 views

Im trying to determine the content type of HtmlAgility.HtmlDocument. Any idea?? HtmlWeb web = new HtmlWeb(); var hDocument = web.Load(/*string*/ url); I want to know how ...
Dallas2017's user avatar
1 vote
0 answers
636 views

I'm trying to use the following code to upload a file to a webpage: WD.document.getElementById("fileUpload").Value = "filepath" 'The code does not came with the property 'value' empty( = "") its just ...
AJR's user avatar
  • 23
1 vote
0 answers
162 views

Using the code posted below Ican get the window handle of a Internet Explorer window and transform it into a IHTMLDocument2 object to read the html. Is there anything similar that can be used for ...
dle's user avatar
  • 11
0 votes
0 answers
614 views

I use IHTMLDocument2 to retrieve strings with innertext in TD Tag and I have links to recover but I do not find how using an innerhtml I see my link but I do not know how to retrieve it. My HTML &...
Larbi Marref's user avatar
3 votes
0 answers
127 views

Certain functions in my program get a bad pointer with a low probability. The pointer is the CComPtr <IHTMLDocument2> m_htmldocument2 variable. Moving the m_htmldocument2 variable to a local ...
i like cat's user avatar
7 votes
4 answers
13k views

$wc = New-Object System.Net.WebClient $DownloadString = $wc.DownloadString("http://www.example.com") $HTML = New-Object -ComObject "HTMLFile" $HTML.IHTMLDocument2_write($DownloadString) Server script ...
Tyler Montney's user avatar
2 votes
1 answer
495 views

I'm trying to change the content of a div using IHTMLDocument2 interface this way: IHTMLElementCollection* collection = NULL; IDispatch* mydiv; doc2->get_all(&collection); ...
Entretoize's user avatar
  • 2,271
1 vote
1 answer
549 views

I am parsing and massaging existing HTML files created by Word (the files cannot be recreated). The HTML files with embedded images include conditional formatting for the vml enabled browsers similar ...
Dmitry Streblechenko's user avatar
0 votes
1 answer
453 views

I'm trying to fill some form input fields in internet explorer from a c++ program but I'm facing a random bug that I hope is because of my code: UINT msg = RegisterWindowMessage("WM_HTML_GETOBJECT"); ...
Entretoize's user avatar
  • 2,271
2 votes
2 answers
3k views

I know there are a lot of articles about this on the internet, and I tried many of them. Although I can make my browser load a webpage on internet, somehow I can't manage to make it load HTML from ...
NoName's user avatar
  • 8,065
0 votes
1 answer
793 views

I'm using IHTMLDocument2::write() as described here in order to load HTML from memory into an IWebBrowser2 instance. The code is shown below: #include <MsHTML.h> void CMyDlg::WriteHTML(const ...
j b's user avatar
  • 5,326
-1 votes
1 answer
10k views

In my application parse HTML document by using IHTMLDocument2, EOleSysError exception is raised during creating instance of IHTMLDocument2. In few days ago, My application worked correctly. Are there ...
F8Kuniie's user avatar
0 votes
0 answers
178 views

I want to change mht file's charset. So I used ihtmldocument2::put_charset If file has no Meta tag charset, It does work. If file has Meta tag, put_charset does not work. Here is my code. ...
sexyEE's user avatar
  • 1
0 votes
1 answer
681 views

I have a very basic WPF form which i want to print <Grid x:Name="grid"> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> ...
Vivek Saurav's user avatar
  • 2,285
3 votes
1 answer
1k views

i'm trying to switch for another frame (With no name or id) but getting Exception. object index = 0; var frame = (mshtml.IHTMLWindow2)workDocument.frames.item(ref index); frameDocument = (mshtml....
Leon Barkan's user avatar
  • 2,713
0 votes
1 answer
714 views

I am facing issue with BHO in C# ,Javascript not inject in iframe . How to get access of <iframe> body using c++/ATL/COM? question is similar like but in this above using com. i want to use C#....
Vishal Sen's user avatar
  • 1,183
2 votes
1 answer
973 views

I am a hobbyist programmer and want to do the following: Log into a site via Username - / Password Click an image which directs me to a certain (sub)site Fill out a form BEFORE submitting the form, I ...
Insektosaurus's user avatar
3 votes
0 answers
145 views

I writing on a script that reads from a local HTML file, modifies DOM tree and then save. Instead of Invoke-WebRequest, using HTMLFile COM object seems the only way to do so. Rewriting to other ...
user avatar
0 votes
1 answer
1k views

I have a system that gets a html via GET every 1 second to update the system data in this html can have 1-20 forms, need to take all forms and assemble a querystring fields of each form, I have a ...
Jason-X's user avatar
  • 39
0 votes
2 answers
748 views

the following procedure works with Windows XP, 7-32, 7-64, 8-32, 8-64, with version of IE 8 to 11 more not work fot the new Windows 10, see the code: try IDoc := CreateComObject(Class_HTMLDOcument) ...
Jason-X's user avatar
  • 39
0 votes
1 answer
464 views

My WPF application is creating multiple WebBrowser controls. I know how to manipulate the HtmlDocument within each and also how to handle mouse events on them. However, from within a mouse event which ...
Franck Dervaux's user avatar
1 vote
0 answers
483 views

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 mshtml....
TareqNewazShahriar's user avatar
0 votes
0 answers
476 views

I have a system that is using IHTMLDocument2 to work an html received a idhttp, so far so good, the problem that depending on the version of windows + version of Internet Explorer + some other detail ...
Dark Ducke's user avatar
0 votes
1 answer
646 views

I have in my one thread system that receives an html a TIdHttp and treats this html with IHTMLDocument2 as below: if IDocTabela = nil then IDocTabela := CreateComObject(Class_HTMLDOcument) as ...
Dark Ducke's user avatar
1 vote
2 answers
986 views

Hello everybody I am reformulating the question, I'm getting a html with a tidhttp and working this html in a TWebBrowser this way: (WebBrowser.Document as IHTMLDocument2).body.innerHTML := xHtml; ...
Dark Ducke's user avatar
0 votes
0 answers
116 views

I'm reading in an .ASP page from a server. The problem I am having is that the page is becoming truncated when I attempted to read the data in by means of the C# code below. Below is my code ...
Nayrb's user avatar
  • 1,043
4 votes
1 answer
454 views

Why doesn't IHTMLDocument3, for example, inherit IHTMLDocument2? Why doesn't IAnyMicrosoftInterface(N) inherit IAnyMicrosoftInterface(N-1)? New interfaces just contain only new functions, but they ...
reinterpret_alexey's user avatar
0 votes
0 answers
193 views

My aim is to get a IHTMLDocument3 interface of each tab opened in the same internet explorer window, in order to fill out some forms. What I've done until now: I assign a IWebBrowser2 interface to ...
theRunner's user avatar
  • 179
1 vote
1 answer
708 views

I'm using IHTMLDocument2 as this: var doc: OleVariant; doc:= coHTMLDocument.Create as IHTMLDocument2; doc:= CreateComObject(Class_HTMLDOcument) as IHTMLDocument2; doc.write(html); doc.close; (...) ...
Miguel E's user avatar
  • 1,336
1 vote
2 answers
4k views

Last year I had powershell (v3) script that parsed HTML of one festival page (and generate XML for my Windows Phone app). I also was asking a question about it here and it worked like a charm. But ...
jumbo's user avatar
  • 4,898
0 votes
0 answers
503 views

I've got some C++ code, that uses ShellWindows to retrieve instances of IWebBrowser, but there is a problem, when IE is run in metro-mode - there are no instances in ShellWindows. Are there any ...
Coldze's user avatar
  • 81
3 votes
1 answer
467 views

I use IHTMLDocument2 interface to retrieve IHTMLStyleSheetRulesCollection using the IHTMLDocument2::styleSheets property. It works fine for retrieving styles within <style> tag (in document <...
Coder12345's user avatar
  • 3,833
1 vote
1 answer
648 views

I am attempting to translate this code from Delphi to C++ Builder: procedure HandleStyleSheets(const Document: IDispatch); var Doc: IHTMLDocument2; // document object ...
Coder12345's user avatar
  • 3,833
2 votes
1 answer
1k views

I'm using the IWebBrowser2 interface to render a page from an HTML string created at runtime. I have written a method (let's call it DisplayHtmlString) that takes an HTML string and renders it as ...
Dabbler's user avatar
  • 9,903
0 votes
0 answers
473 views

I am trying to render a html file in my own create window using Visual c++(x64). I have done every thing I just need some mechanism to display html file in my own window.I have html file contents ...
Sss's user avatar
  • 1,559
0 votes
1 answer
297 views

I am developing a visual c++ applicatio(x64). what actually i am trying to do is that suppose we have a html file in window explorer(i mean file with file extension ".html"). when we single click on ...
Sss's user avatar
  • 1,559
1 vote
1 answer
944 views

I'm a newbie to CHtmlView of Visual C++ programming. I need to make a web-browser application display website by IHTMLDocument2 interface which will need to download activex control from website and ...
Matthew Lee's user avatar
2 votes
1 answer
3k views

In Internet Explorer, I can use IHtmlDocument2 to get the html document. function GetCurrentBrowserDOM: WideString; var hr: HRESULT; CurrentIE: IWebbrowser2; Wnd: HWND; WndChild:HWND; ...
user151465464's user avatar
5 votes
1 answer
6k views

guys: I got a problem about "how to get an IHTMLElementCollection obj which composed of several IHTMLElements" in object-pascal programming , my codes below: function TExDomUtils....
MarcoLin's user avatar
1 vote
1 answer
942 views

Is it possible to force Internet Explorer_Server to refresh it content? What I have is a handler to that object in external application (like in my similar question) I found a nice tutorial on ...
Misiu's user avatar
  • 4,969