I want to open the documents like pdf, office , image, txt, rtf inside the uwp desktop application. is there any control in toolbox which open this type of documents ? :( thanks in advance :)
Asked
Active
Viewed 94 times
1
-
You could open image text rtf with RichEditBox control. For pdf, please refer this case [reply](https://stackoverflow.com/questions/47712068/how-can-i-show-an-pdf-file-in-xamarin-pcl-uwp-that-is-outside-my-instal-folder/47747934#47747934). – Nico Zhu Jul 24 '19 at 09:22
-
i am tried for image [link](https://learn.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/rich-edit-box) but it cant display an image for image what value set ? editor.Document.LoadFromStream(Windows.UI.Text.TextSetOptions.FormatRtf, randAccStream); – Jul 24 '19 at 09:43
-
You could use `InsertImage` method to insert image to `RichEditBox`, please refer this [case](https://stackoverflow.com/a/51626963/7254781). – Nico Zhu Jul 24 '19 at 09:47
-
and for office,excel sheet,word, ? – Jul 24 '19 at 10:10
-
You could use [`DocumentFormat.OpenXml`](https://www.nuget.org/packages/DocumentFormat.OpenXml/) nuget package. Open XML SDK provides tools for working with Office Word, Excel, and PowerPoint documents. – Nico Zhu Jul 24 '19 at 10:29
-
do you have any code sample because i just want to display files inside my uwp application – Jul 24 '19 at 10:41
-
Please refer this [document](https://learn.microsoft.com/en-us/office/open-xml/how-to-parse-and-read-a-large-spreadsheet#sample-code). – Nico Zhu Jul 24 '19 at 11:58
-
yes i am refereed this but on which control we should display this ?? – Jul 24 '19 at 12:00
-
You could use [DataGrid](https://learn.microsoft.com/en-us/windows/communitytoolkit/controls/datagrid) to display the parsed data. – Nico Zhu Jul 25 '19 at 02:06
-
which third party paid controls good for UWP application development ? where i can convert images in pdf even open any documents inside uwp application – Jul 25 '19 at 05:02