Forum Discussion
Document previews and using the file viewer
- Aug 22, 2022
That's possible to show document from particular folder in Document Library and connect File Viewer Web part with it. Instead of 1/3-2/3 column, I would suggest to use Vertical Section for documents and one column layout for file preview for bigger file preview.
Let's say you have document library where you want to show document from Test Folder
- Go the your page and add one column layout section and one vertical section
- Add Document Library web part in Vertical Section and Set Folder property by relative path of your folder from which you want to show documents
- Now add File Viewer web part and connect it to document library web part
Now save your page and you will get your desired output. Select any document from Document Library web part and preview will be generated for that document on left side
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community
- Go the your page and add one column layout section and one vertical section
That's possible to show document from particular folder in Document Library and connect File Viewer Web part with it. Instead of 1/3-2/3 column, I would suggest to use Vertical Section for documents and one column layout for file preview for bigger file preview.
Let's say you have document library where you want to show document from Test Folder
- Go the your page and add one column layout section and one vertical section
- Add Document Library web part in Vertical Section and Set Folder property by relative path of your folder from which you want to show documents
- Now add File Viewer web part and connect it to document library web part
Now save your page and you will get your desired output. Select any document from Document Library web part and preview will be generated for that document on left side
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community