Recent

Author Topic: htmlViewer or pl__HTML5Canvas - has anybody install and can paste a link pls?  (Read 3290 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1271
I use am Win 7 VM at the moment.
This means, the CE4 component will not work for me.

I found two html-componentes by the OPM:
htmlViewer
pl__HTML5Canvas

Has anybody installed them and can say me, if they are able to display e.g. those sites?
https://www.ecb.europa.eu/press/govcdec/html/index.de.html
https://cnnespanol.cnn.com/2024/09/30/analisis-cnn-bombas-ataque-jefe-hezbollah-trax/

If the images of menues etc are gone, I do not mind.
I wonder, if the information can be displayed.
Can anybody pls paste it into the htmlViewer and tell me?
Please add the OS you use.
Thx.

paweld

  • Hero Member
  • *****
  • Posts: 1514
Hi,
CEF4 Delphi will work on Windows 7, you just need to use an older version of the component: https://github.com/salvadordf/CEF4Delphi/releases/tag/109.0.5414.120
Best regards / Pozdrawiam
paweld

wp

  • Hero Member
  • *****
  • Posts: 13264
I did not test pl__html5canvas, but I installed the htmlviewer, ran the HtmlDemoLaz project provided and loaded the ecb file for which I had downloaded the html source text using my standard browser - in the attachment you see what I get (after some scrolling down the page)

Is that ok for your requirements? What do you want to do with it? Extract some information from the html page? In such a case you don't need such a component at all, a html parser would be sufficient (comes with fpc). And be aware: the htmlviewer will ignore javascript. (and it seems that the HTML-Viewer has issues with UTF8, at least in the HtmlDemoLaz test project).

« Last Edit: August 22, 2025, 04:05:34 pm by wp »

Nicole

  • Hero Member
  • *****
  • Posts: 1271
Thank you for your reply. I was not in my office for some weeks.
This look would be absolutely ok!!

- however, I could not install the html viewer. Something was missing. I tried to install Indy as well and re-tried. The thing was still missing. Only one line. I fixed it by setting it as comment. Three other things were missing. And so on and so on.
I read, that the html viewer is a development for Delphi and other postings suggests, that the installation is just the start of troubles in Lazarus.

Under the line, I deleted the whole VM-branch. It took me so much time for nothing.

I suspect, that the problem is Win 7.
I tried to make a Win 10 VM, but it did not work. It is that huge and that slow, that I gave up as well.

So my problem stays: Win 7 does not work with the current sites.
And Win 10 does not work for me in a VM.

This Linux Cinnamon attempt was a disaster. Lazarus 4 did not work at all with Linux.
And the other software was that outdated, that it was not interesting any more.
I am tired of hearing the Linux-fairy tale of "we take just what is approved".
"approved" and "grandfathered" are two topics.
If there is Firebird 5 and they offer Firebird 3 (what would not even work with my SQL), then this is overdone. This is not approved, but outdated. I was tired to hunt every actual software and install it by hand.

So I end up with an unsolved problem.
I thought to try a not-Cinnamon distribution, but was not able to up to now.
It takes so much time.

Not sure, how the Linux community will go on. This distribution cannot be fun for anybody.

wp

  • Hero Member
  • *****
  • Posts: 13264
Just to assure you that htmlviewer has no problems with Windows 7: I have a VM with Win-7 (VirtualBox in Win-11 host) and installed the htmlviewer package from OPM into Laz/main. No problem in the installation, a tested sample project runs fine. I have no idea what's wrong in your system

Nicole

  • Hero Member
  • *****
  • Posts: 1271
Thank you for the information.

Unfortunately, it is weeks ago. It was some specific snippet, which did not work. I cannot remember the name. Anything graphic, an element of display? The graphic card driver is another possibility. I am happy with my computer, it is really quick. However, it is old.

ChatGPT thought, that the item would be needed as display library or so. Sure, it may have posted pure fiction again.
I read ".... something not found". Looked alike a type "java not found" , however it was not Java.

Are you happy with this html-viewer?
I asked it, because on searching for my installation problem solution, I found a lot of people having troubles with it. The author Gabriel something seems to focus on Delphi and the existing old Lazarus version seemed to have been a matter of good luck.

This CE4 (or similar) is a hard thing either. As it needs so many libraries to be (down-)loaded of which there are so many versions for every system it is very confusing. I came to the conclusion, after having lost so much time on it, - that it will not work with Win 7 at all.

wp

  • Hero Member
  • *****
  • Posts: 13264
Are you happy with this html-viewer?
Well, I don't use it. Luckily all my needs for displaying html have been simple enough so that the IpHtmlPanel (which comes with Lazarus) was sufficient.

It is my impression that the htmlviewer is more complete than the IpHtmlPanel.

paweld

  • Hero Member
  • *****
  • Posts: 1514
CEF4Delphi version 109.0.5414.120 works without any problems on Windows 7.
The program sources are included in the attachment, and the working compiled version (32-bit) can be downloaded from: SimpleBrowser-bin.zip (~125MB)
Best regards / Pozdrawiam
paweld

Nicole

  • Hero Member
  • *****
  • Posts: 1271
@paweld:
Thank you so much for the postings.
I downloaded them all and will try them soon.

 

TinyPortal © 2005-2018