438 questions
Score of 0
1 answer
373 views
Webscraping dynamic content using Excel VBA
I need to monitor the content of some webpages (to see if any information posted on them has changed). For various reasons, I have to use an Excel spreadsheet to do this, so that limits me to using ...
Score of 1
1 answer
56 views
Access VBA MSHTML document with scripts loads slowly
Why would a local html file with remote scripts and css links take a long time to load
For example,
<script src="example.com/ajax/font.js" type="123-text/javascript"></...
Score of 2
0 answers
142 views
Delphi 11.3: save MHT with resources without dialog
My code:
uses
System.SysUtils, MSHTML, ActiveX, SHDocVw;
implementation
procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Navigate('google.com');
end;
procedure TForm1....
Score of 0
1 answer
40 views
I got error in this line"If objHTML.parseError.ErrorCode <> 0 Then" & the error is 438 object doesn't support property or method
Option Explicit
Function CheckHTMLErrors(ByVal htmlString As String) As Long
' This function checks if there are any errors in the HTML tags of a given string
' and returns the appropriate ...
Score of 0
2 answers
319 views
VB.NET Incorrect HTML from Outlook Item .HTMLBody
I'm trying to replicate a VBA function I made into VB.NET.
it basically gets a mail and then it extracts its TABLE tag from its HTMLBody.
My issue is that the functions give a different output.
VBA's ...
Score of 0
1 answer
132 views
Unable to retrieve contents of element id
Unable to retrieve elements contents using excel vba
Option Explicit
Dim XMLPage As New MSXML2.XMLHTTP60
Dim HTMLDoc As New MSHTML.HTMLDocument
Dim HTMLInput As MSHTML.IHTMLElement
Dim HTMLButtons As ...
Score of 0
1 answer
293 views
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, ...
Score of 1
0 answers
54 views
IOleCommandTarget IDM_BLOCKFMT doesn't work when changing windows locale to non-english
I have the following c# .Net code in WPF app code:
public static void ClearList(IHTMLDocument document)
{
if (CanSetBlockFormat(document))
{
...
Score of 1
1 answer
222 views
How to setup font rendering in MSHTML
I'm learning to host a browser in my WinApi application using MSHTML and it's IWebBrowser2 and IHTMLDocument2. The first problem is blurry text, the left part of a picture is my app, and the right ...
Score of 0
0 answers
83 views
What customizations do OLE and MSHTML support?
I found some examples of use MSHTML to render HTML in WinAPI application (w/o MFC, UWP etc.), like this example. I have no experience with OLE and MSHTML, so I want to know can I implement some things ...
Score of 0
1 answer
381 views
Assigning IHTMLDocument2 instance to a TWebBrowser instance
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:
...
Score of 2
1 answer
183 views
Load from IPersistMoniker takes long time to load unresolvable URL
I am loading an local disk drive _test.htm file through IPersistMoniker Load method. From what I believe, it is supposed to add the path to the relative URLs as base path. Problem is - it does not do ...
Score of 0
0 answers
110 views
Web Scraping with VBA: collection of strong elements
I would like to receive the following data for each player:
Purchase price (this value does not exist for each player!),
lowest price,
maximum price.
With my current coding I get as innertext all 3 ...
Score of 1
1 answer
587 views
Scraping Data from Website using vba doesn´t work
I want to create a list of player names scraping a website. The Internet Explorer starts but I get an run time error "438" - Object does not support this property or method.
Structure of ...
Score of 4
1 answer
955 views
What are the currently supported CSS selectors available to VBA?
Back on May 19th 2021, I wrote this Q&A regarding recent (Apr-May-21) suspected changes to an interface in relation to mshtml.dll and late bound referencing. This is a part 2, if you will.
...