question

DennisArriola-3670 avatar image
0 Votes"
DennisArriola-3670 asked AryaDing-MSFT commented

[UWP][MVVM] How to preview the first page of a .doc, .docx file.

We have a requirement to view the first page of a document file in our project.
I've been researching in the internet for some ideas but I still can't figure it out.
The closest thing I discovered is about using Syncfusion SfRichTextBoxAdv.
The problem is I can't load the doc file following the MVVM pattern.
Can someone please us achieve this. Thank you~ :)

windows-uwp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DennisArriola-3670 How about your progress? If your question hasn't been solved, please feel free to contact us.

0 Votes 0 ·

1 Answer

AryaDing-MSFT avatar image
0 Votes"
AryaDing-MSFT answered

Hi,

Welcome to Microsoft Q&A!

Currently, there is no such UWP API could preview document file in uwp app. Generally, we use Launcher.LaunchFileAsync method to open document file in Microsoft Office. More info could be found here. Maybe, you need to find a third-party library to do this issue.



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.