| |

VerySource

 Forgot password?
 Register
Search
View: 868|Reply: 5

How to use WebBrowser to read the webpage file in the local directory when remote webpage cannot be accessed

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-24 01:00:02
| Show all posts |Read mode
As the title
Reply

Use magic Report

0

Threads

34

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-7-5 12:30:01
| Show all posts
When reading a remote webpage fails, it usually returns some specific pages to display in the webBrowser, such as:

              Can't find webpage
              The webpage you are searching for may have been deleted, renamed, or temporarily unavailable.

              If you typed the web address in the "Address" field, please check its spelling.

              Open the www.5-365.com home page and look for the link to the required information.
              Click the back button to try another link.
              HTTP 404-cannot find file
              Internet Information Service

You can check whether the html text in webBrowser contains the obvious substrings in these strings, and if so, turn webBrowser to the local page
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Germany

 Author| Post time: 2020-7-7 16:00:01
| Show all posts
I use
WebBrowser1.Navigate('http://192.168.0.1/index.htm')
If the page cannot be found, it is not a 404 message, but a blank

I know the theoretical knowledge, I hope to have detailed code, thank you
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-8-3 18:45:01
| Show all posts
No one knows how it is. Many shareware can do this. Now many questions of Verysource have not been answered, disappointed. . .
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 21:15:01
| Show all posts
Who knows, I can't find this problem
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 21:30:01
| Show all posts
I use the event in the DocumentComplete event and always prompt that the resource is in use~~~
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list