Display Microsoft Word in a Perspective

I am using WebDev along with Video Viewer and PDF Viewer. Is it possible to display Microsoft Word documents using WebDev in a similar manner?

Jeff

I now have this as a requirement, is it possible to view word doc in perspective?

I have the same requirement, but can't find solution yet. I can use python scripts docx_to_pdf.py to convert the .docx to .pdf, and the pdfView in ignition can display the .pdf, but I can't execute the external python scripts yet.

import subprocess

docx_path = "/path/to/server/input.docx"
pdf_path = "/path/to/server/output.pdf"

subprocess.run(["python", "docx_to_pdf.py", docx_path, pdf_path])

There's a StackOverflow question with solutions that might be adapted to use with Ignition.

Most of them involve either converting to PDF server-side or using an external service, such as
the Office Online's web viewer (and here's an example), to render the doc in an Inline Frame.

2 Likes