Skip Navigation

[Resolved] Display word document

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#2145861

Tell us what you are trying to do?
I have a records with unique word docs attached. Is there a way to actually see the attached .doc file in a view or form? Or to click on the link and have it open up for viewing but not download.
Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#2145877

Is there a way to actually see the attached .doc file in a view or form? Or to click on the link and have it open up for viewing but not download.
Hello, Toolset does not offer any features for displaying Word Docs inline, and most browsers will not support rendering Word Docs directly since it is a proprietary file format. I did a quick search and found a site that suggests using a couple of different viewers, including Google Docs and Office 365, to render a remote Word Doc using an iframe:
https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript
I can't speak to the effectiveness of this solution, though, I've never tried it and don't know if these online Viewers are still available.

If you want to try it out, you can replace the Word doc's URL with a Types field shortcode instead:

[types field="your-file-field-slug" output="raw"][/types]

Replace your-file-field-slug with the slug of your file field, and this shortcode will give you the full URL of the file.

If you took screenshots of each page of the Word Doc you could upload them in a repeating image field, then use our Image Gallery block to display a slideshow containing each page of the document. That's probably the best solution available with Toolset features, but might be tedious since it requires you to create and upload screenshots separately from the Word Doc.