View Full Version : Ler webbrowser
pacorbett
29-Nov-2023, 08:28 AM
PessoAll,
Tenho um programa antigo (vdf 15), que utiliza um webbrowser para carregar uma pagina cujo link é carregado com o ComNavigate. A pergunta é :
tenho como ler o conteúdo da página numa struct, ou array ou qualquer coisa semelhante ? preciso identificar se existe determinada palavra na pagina, antes de mostrar o conteúdo.
Grato pela atenção...
atts
Percy Augustus Corbett
tecpac.com.br
Samuel Pizarro
29-Nov-2023, 02:20 PM
eu nunca precisei, mas com certeza tem
tanto a DAW , qto o Wil criaram uma classe/wrapper utilzando o componente novo da Microsoft webView2Browser
Olhe nos samples das versoes novas. 20.1 ou 23.0 na workspace "Specialized Components" , tem o projeto de demo com varias funcionalidades..
pacorbett
29-Nov-2023, 02:29 PM
eu nunca precisei, mas com certeza tem
tanto a DAW , qto o Wil criaram uma classe/wrapper utilzando o componente novo da Microsoft webView2Browser
Olhe nos samples das versoes novas. 20.1 ou 23.0 na workspace "Specialized Components" , tem o projeto de demo com varias funcionalidades..
Grato, Samuel Pizarro...Vou dar uma olhada e tentar montar. Agradeço pela atenção.
wila
30-Nov-2023, 06:30 AM
Hi,
I'm going to answer in English as my Portuguese isn't passable to read.
If you control the html and/or if the website isn't using modern techniques then you might be able to get away with the old browsercontrol that is still available within windows. For more details on that see Vincent's blog post series here: https://support.dataaccess.com/Forums/entry.php?114-Getting-More-Out-of-Your-Browser-Control
If the html is not controlled by you and/or you need to have access to a modern browser engine then you either have to update DataFlex 20+ and use DAW's cWebView2Browser class or stay with the older vdf15 version and buy an ActiveX wrapper control that provides access to the WebView2 control.
The latter is a control I sell, but there's also a chrome based alternative available somewhere.
--
Wil
pacorbett
30-Nov-2023, 06:34 AM
Hi,
I'm going to answer in English as my Portuguese isn't passable to read.
If you control the html and/or if the website isn't using modern techniques then you might be able to get away with the old browsercontrol that is still available within windows. For more details on that see Vincent's blog post series here: https://support.dataaccess.com/Forums/entry.php?114-Getting-More-Out-of-Your-Browser-Control
If the html is not controlled by you and/or you need to have access to a modern browser engine then you either have to update DataFlex 20+ and use DAW's cWebView2Browser class or stay with the older vdf15 version and buy an ActiveX wrapper control that provides access to the WebView2 control.
The latter is a control I sell, but there's also a chrome based alternative available somewhere.
--
Wil
Thank you,Will. I will check all possibilities. The client has VDF 16, thank you for your attention.
wila
30-Nov-2023, 06:45 AM
Difficult to say what the best choice is without knowing more.
While I obviously like sales I would lean towards upgrading the customer to a modern version of DataFlex so that you can use the cWebView2Browser control.
Beware about the old browser control that:
- IT departments do sometimes disable it because it is now considered unsafe as Microsoft no longer updates it.
- Don't use that if it is a lot of work to get going as you are investing time in a control that has been declared obsolete.
- I doubt that Microsoft will disable the WebBrowser control, but it is a real possibility that might happen. So I really wouldn't built anything big on top of that anymore.
With that out of the way, the old control still works AFAICT.
--
Wil
pacorbett
30-Nov-2023, 06:55 AM
Thanks again Will. Let's analyze the possibilities, but I agree with you.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.