Sometimes I hate myself for deciding to use web browser control, instead of external apps.
Now that it’s been confirmed that the legacy web browser control cannot display PDFs in Windows 11, I created a form with two Edge browser controls:
It sounds straightforward, but I just can’t get it to work properly.
How to reproduce:
The problem:
The PDF does not stay visible. It appears for a second and then disappears.
If anyone has a bit of free time to take a look and point out what I might be doing wrong, I would really appreciate it.
Thanks.
Now that it’s been confirmed that the legacy web browser control cannot display PDFs in Windows 11, I created a form with two Edge browser controls:
- One to display PDF files
- One to display a supplier’s website
It sounds straightforward, but I just can’t get it to work properly.
How to reproduce:
- Extract the ZIP file to a folder and open the database.
- The control that shows the website (wBrowser) is visible.
- The control that shows the PDF (pdfBrowser) is hidden.
- wBrowser gets hidden.
- pdfBrowser gets visible and the path of one of the attached PDF files is assigned to its RecordSource.
The problem:
The PDF does not stay visible. It appears for a second and then disappears.
If anyone has a bit of free time to take a look and point out what I might be doing wrong, I would really appreciate it.
Thanks.