Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I am trying to show a PDF in a WebBrowser element. I have the file saved to the drive of the HMI/PLC. I am linking it in the URL parameter of the WebBrowser using the following directory link. 'http://localhost:8080/$$sdcard$$/FileName.pdf'.
This allows for the program to download without any errors. When I navigate to that screen it is just a white box and nothing shows. I attempted putting the same link in the show parameter and I get a loading icon on my cursor when monitoring the HMI with my PC. Any help is appreciated. Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My experience is that opening pdf file is very dependent on which browser is used. I have tried a couple of them and only Mozilla Firefox has opened file correctly in same screen.
All other browsers face some issues. Therefor I had to flip my pdf to txt which has not been nice solution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, you canΒ΄t. I have only tried different browsers on my PC and then on my HMI device. Unfortunately the deviceΒ΄s browsers did not support pdf file as I needed so I had to switch to *.txt.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to show a PDF in a WebBrowser element. I have the file saved to the drive of the HMI/PLC. I am linking it in the URL parameter of the WebBrowser using the following directory link. 'http://localhost:8080/$$sdcard$$/FileName.pdf'.
This allows for the program to download without any errors. When I navigate to that screen it is just a white box and nothing shows. I attempted putting the same link in the show parameter and I get a loading icon on my cursor when monitoring the HMI with my PC. Any help is appreciated. Thank you.
My experience is that opening pdf file is very dependent on which browser is used. I have tried a couple of them and only Mozilla Firefox has opened file correctly in same screen.
All other browsers face some issues. Therefor I had to flip my pdf to txt which has not been nice solution.
You can change which browser you use in a webbrowser visual element? if so how do I do that?
No, you canΒ΄t. I have only tried different browsers on my PC and then on my HMI device. Unfortunately the deviceΒ΄s browsers did not support pdf file as I needed so I had to switch to *.txt.