Take a look a the code below to see where the words docx and thumbnail appear. This API transforms a docx file into into a thumbnail. Instead, it returns the SharePoint API web address that will return an image. When we select the thumbnail of a Word, Excel or PowerPoint file from the gallery like this it does not directly return an image. How Does The Word, Excel & PowerPoint to PDF Conversion Work? The Document Viewer app is now completed. Write this code in the Document property of the PDF viewer. This task can be accomplished in Power Apps with only one-line of code. To do this we must convert the docx, xlsx or pptx file to a pdf. We will use the PDF viewer to display a Word, Excel or PowerPoint document instead. It will display Lorem Ipsum text until we supply a it with a Word, Excel or PowerPoint file.Ĭonvert Word, Excel and PowerPoint Files Into A PDF Place the PDF viewer so it fills right-side of the screen. Now that we’ve got a list of PDF files to open the next step is to add a pdf viewer control to the app. Then it uses the SVG code from this free Power Apps Icon Set to draw the icon.ĮndsWith(ThisItem.'File name with extension', "docx"), The EndsWith function checks the file extension at the end of the filename. Then we will create the icons Word, Excel and PowerPoint icons with some SVG code.Ĭopy and paste this long code block into the Image property of the Image. Insert a new Image into the gallery and place it on the left-side of the row. To make a better looking file explorer we will place an icon beside each filename in the list. Write this code in the Text property of the labels to show the document name and the last modified date. Then create 2 new labels and insert them into the gallery. TemplateFill: If(ThisItem.IsSelected, ColorFade(LightSkyBlue, 70%), White) Use this code in each of these properties in the gallery to achieve the same style as shown in the image above. Next, we will update the style of the gallery. This code will appear in the Items property of the gallery. Choose Document Viewer as the datasource. Make a new blank vertical gallery and position it on the left-side of the screen. Then add the Document Viewer SharePoint Document Library to the app as a datasource. Insert a label at the top of the screen with the text “Document Viewer” to act as titlebar. Open Power App Studio and create a new tablet app from blank. Another filetype not found in the list aboveĬreate A List Of Word, Excel and PowerPoint Files.When the employee selects a file from a list it opens to show the full document on the right-side of the app.Ĭreate a new SharePoint document library called Document Viewer one of each filetype: How Does The Word, Excel & PowerPoint to PDF Conversion Work?Įmployees at an animal hospital user the Document Viewer app to look at Word (docx), Excel (xlsx) and PowerPoint files (pptx).Convert Word, Excel and PowerPoint Files Into A PDF.Display Word, Excel and PowerPoint Icons.Create A List Of Word, Excel and PowerPoint Files. But with one-line of code you can use Power Apps PDF viewer to show docx, xlsx, and pptx files instead of pdf files. No, the PDF viewer can’t do this by default. Power Apps has a secret Word, Excel and PowerPoint document viewer hiding in plain sight.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |