Edge Browser Control can't render local .PDFs (2 Viewers)

Hoof Hearted

New member
Local time
Today, 22:57
Joined
Feb 9, 2026
Messages
2
This is production database for an engineering company. I started writing it in 1994 using Access 2. We've gone through several versions of Access and we've now been on Access 365 for several years with a SQL Server back end. It's worked well and I could usually fix problems myself until January this year...

We have a form which displays information relating to customer Drawings. In the top right corner is a Web Browser control with displays a .PDF thumbnail of the current drawing. The .PDFs are located in the customer's folder on our server. Just one of our users has a Windows 11pc. On that pc, the .PDF no longer displays the image. The control just displays a grey rectangle.

I did some reading and discovered that the Web Browser control has been deprecated and the Edge Browser control is what I should be using. So on my own windows 10 workstation I tried to implement it. What I find is that the Edge Browser control almost displays raw text instead of rendering the .pdf. Just a very few .PDFs render normally with the Edge Browser control.

Here's what I've tried in order to fix the issue.

I've put "h-t-t-p-s-:-/-/-m-s-a-c-c-e-s-s-/" at the start of the address. (I had to insert all those hyphens before this site would accept this question)

I've tried putting the address in the .ControlSource property of the control, instead of using the .Navigate method.

If tried putting "=" at the start of the address and wrapping the address in quotes.

I've moved the code into the FormTimer() routine, so that it runs after the form has opened and everything else is initialised.

Reading other people's woes, it seems that there was an update in January which has caused problems with the Edge Browser control displaying local .pdfs. I had only used the Web Browser control previously. So I don't know if this is a new problem with the Edge Browser control.
Garbage PDF.png

Does anyone know of a fix please?
 
Just one of our users has a Windows 11pc. On that pc, the .PDF no longer displays the image. The control just displays a grey rectangle.

Perform this web search: "problems with edge browser control and PDF local files"

Since I don't use Edge browser, I can't give any more advice than this. However, that search turned up a couple of pages of articles, one or more of which might be useful. The fact of it being a local file to the Win11 system suggests that the Win11 system doesn't have a proper association for PDF files and MIGHT not have the free-to-download Adobe Reader app.
 
Yes it does have Adobe Reader. It is this which the Web Browser control used to render the .PDf images. I assume the Edge Browser control uses it also. I've tried changing the windows default pdf reader. It doesn't make any difference. Historically we've always had Adobe Reader as the default pdf reader.

When a user opens this form, the .PDF opens in the WebBrowser control at the top right. If the user wants to see the image full screen, they can click a button and Access executes a Shell command to call Adobe Reader supplying the filepath as a command line argument. This still works fine.
 

Users who are viewing this thread

Back
Top Bottom