question

GrietDeGroote-2185 avatar image
0 Votes"
GrietDeGroote-2185 asked DanielPineault-1898 commented

webbrowser control stopped working

i use a webbrowser control, it worked a long time , all of a sudden it doen't show the local file anymore ... what chged ? or what should i change ?

office-access-dev
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I've seen a similar report elsewhere. In order to report it as a bug it would be important to know your version of Access.
If you go to File - Account you see the exact version number and with a click on About Access you see if it is 32 or 64 bit.

Servus
Karl


http://AccessDevCon.com
https://www.donkarl.com

0 Votes 0 ·

What kind of local files (.html, .pdf, images)?


0 Votes 0 ·

i use the 64 bit version

0 Votes 0 ·

pdf-files

0 Votes 0 ·

Hi,

As I wrote, there are other reports about this. So, it looks like it's an update bug in the latest version of 64 bit Access.

You didn't specify your version number, but if you're on the latest build, you could possibly try reverting to an earlier version and turning off/delaying updates until it's fixed:
https://support.microsoft.com/en-us/topic/how-to-revert-to-an-earlier-version-of-office-2bd5c457-a917-d57e-35a1-f709e3dda841

Servus
Karl


http://AccessDevCon.com
https://www.donkarl.com

0 Votes 0 ·
thedbguy avatar image
0 Votes"
thedbguy answered

Do you need to show the files within a form? Is it okay to simply open the file browser instead?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GrietDeGroote-2185 avatar image
0 Votes"
GrietDeGroote-2185 answered

i need to see the file . it is so strange, it worked for years and now all of a sudden i do not see anything in the webbrowsercontrols , in all access databases where i use this . can it have something to do with an update or something ?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GrietDeGroote-2185 avatar image
0 Votes"
GrietDeGroote-2185 answered

... even if a make a totally new form and i add a webbrowsercontrol and i choose an existing file, it gives me nothing.108304-capture.png



capture.png (16.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thedbguy avatar image
0 Votes"
thedbguy answered

Re: "... even if a make a totally new form and i add a webbrowsercontrol and i choose an existing file, it gives me nothing."

Are you saying you want to see the contents of a file in the browser? If so, as Viorel-1 asked earlier, what type of file is it?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GrietDeGroote-2185 avatar image
0 Votes"
GrietDeGroote-2185 answered DanielPineault-1898 commented

yes i want to see the content and the file is a pdf file

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Perhaps look over

https://www.devhut.net/2020/08/02/access-display-pdf-inline-in-a-form/

I'm hoping the new webbrowser control will include native pdf viewing like all other modern browsers, but until it arrives ...


0 Votes 0 ·
Viorel-1 avatar image
0 Votes"
Viorel-1 answered GrietDeGroote-2185 commented

As a temporary workaround, maybe replace the WebBrowser control with a button, which executes a code like this:

FollowHyperlink "C:\MyFiles\Sample.pdf"

It will open the default viewer (a modern browser or Acrobat Reader), which maybe is more convenient.

By the way, it seems that the support for Internet Explorer (which is used by WebBrowser control) will end soon: https://techcommunity.microsoft.com/t5/microsoft-365-blog/microsoft-365-apps-say-farewell-to-internet-explorer-11-and/ba-p/1591666.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

viewing the file in Adobe works. that is no problem.

But i like to have it in the form.
What is Microsoft doing then ? why does the webbrowser control exists in Access if it doesn't work because of Internet Explorer ?

0 Votes 0 ·