In search of suggestions with PDF Viewer in mappView

Hi everyone,

I’m still using Automation Studio 4.12 and mappView for the visualization of my project.

I have created a content page where I placed a PDF Viewer widget, and I would like to show documents such as manuals and other files to the end users.

I need to store the files in the GPOS and, via Automation Runtime, set the path where the documents are located.

I tried to find some kind of guide in the B&R Help documentation, but without success.

Has anyone implemented this functionality in a mappView visualization?

Hi @mtwzinga

You can share the folder where the documents are located using SMB or FTP server on the GPOS.

Then in the PLC you can use function blocks DevLink and DevUnlink to create and delete network filedevice.

Then use the created file device in the mappView widget with the src parameter to something like this:
FileDevice:YOUR_FILEDEVICE_NAME/YOUR_PATH_TO_DOCUMENT

You can handle it in the PLC code if you want and just bind a string variable to the src parameter.

Hope it help!

Regards,
Florent

3 Likes