Skip to main content
Home Forums General Silverlight Getting Started How to open a word document in a silverlight application?
8 replies. Latest Post by .netdan on November 22, 2009.
(0)
m.campos
Member
15 points
14 Posts
09-11-2009 7:51 PM |
Hello,
I am new to silverlight and C# so I easily run into problems. I have created a silverlight application and I need to display a list of word documents that can be opened in MS Word or within a new browser window. I have searched for a tutorial and also in forums but usually the explanations are in a much higher level of knowledge than mine so I get lost. If anyone could steer me in the right direction I will really appreciate.
Thank you in advance,
mc
ksleung
Contributor
5396 points
1,028 Posts
09-11-2009 11:56 PM |
You can't open Word documents using Silverlight.
09-12-2009 12:13 AM |
thanks for replying! do you have any suggestions? What about pdf files?
09-12-2009 1:16 AM |
Silverlight also does not support PDF.
However, if you can convert PDF to XPS on the server side, you may be able to show them in Silverlight with the help of 3rd party libraries. Do a search on "Silverlight XPS viewer".
09-12-2009 8:15 AM |
Great! I will follow that path. Thank you!
msalsbery
2030 points
376 Posts
09-13-2009 7:22 PM |
m.campos:opened in MS Word or within a new browser window
Additionally, in case you didn't know...
If the Word and PDF files are accessible by URI, you could do what regular web pages do, e.g.
09-15-2009 2:20 PM |
that is the workaround I was looking for... I am going to try right now!!
Thank you so much,
09-15-2009 2:33 PM |
WOW!!!!!! It worked beautifully!!! thank you again... I had spent a lot of time trying to find a way and you aced it!!!!
.netdan
3412 points
513 Posts
11-22-2009 5:30 PM |
In Silverlight 4 you can not only open Word docs locally on the client-side but edit them too, this is only possible in Silverlight 4:
http://www.vectorlight.net/tutorials/silverlight_4/word.aspx