| |

VerySource

 Forgot password?
 Register
Search
View: 842|Reply: 3

Ask an IWebBrowser2 how to automatically save the current file. If you use EXECWB, the SAVE window will pop up. I want t

[Copy link]

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-25 10:00:01
| Show all posts |Read mode
Ask an IWebBrowser2 how to automatically save the current file. If you use EXECWB, the SAVE window will pop up. I want to prevent him from popping it up, such as automatically saving to C :. How can I do this?
Reply

Use magic Report

0

Threads

21

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-5 03:15:02
| Show all posts
Based on security considerations, this window must pop up during EXECWB, there is no way to mask it with parameters.

However, you can query the IPersistStreamInit interface of the document after the document is loaded (the sender is the DocumentComplete event of the topmost frame), and then call IPersistStreamInit :: Save. Only the loaded HTML content can be saved. Pictures and scripts can't be saved.
If you want to automatically save the attached file, you can process it in the HTTP protocol processing layer, and save the backup when downloading
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-3-11 11:45:02
| Show all posts
Halo! So you can't use IE interface to do complete data saving?
Reply

Use magic Report

0

Threads

21

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 United States

Post time: 2020-3-12 08:15:01
| Show all posts
no
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