Skip to main content

Microsoft Silverlight

Answered Question How to open a word document in a silverlight application?RSS Feed

(0)

m.campos
m.campos

Member

Member

15 points

14 Posts

How to open a word document in a silverlight application?

 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
ksleung

Contributor

Contributor

5396 points

1,028 Posts

Answered Question

Re: How to open a word document in a silverlight application?

You can't open Word documents using Silverlight.

m.campos
m.campos

Member

Member

15 points

14 Posts

Re: How to open a word document in a silverlight application?

 thanks for replying! do you have any suggestions? What about pdf files?

ksleung
ksleung

Contributor

Contributor

5396 points

1,028 Posts

Re: Re: How to open a word document in a silverlight application?

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".

m.campos
m.campos

Member

Member

15 points

14 Posts

Re: Re: Re: How to open a word document in a silverlight application?

Great! I will follow that path. Thank you!

mc

 

msalsbery
msalsbery

Contributor

Contributor

2030 points

376 Posts

Answered Question

Re: How to open a word document in a silverlight application?

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.

 

System.Windows.Browser.HtmlPage.PopupWindow(new Uri("http://myhost/mydocument.pdf"), "_blank", null);

 


Mark Salsbery
Microsoft MVP - Visual C++

m.campos
m.campos

Member

Member

15 points

14 Posts

Re: How to open a word document in a silverlight application?

that is the workaround I was looking for... I am going to try right now!!

Thank you so much,

mc

m.campos
m.campos

Member

Member

15 points

14 Posts

Re: How to open a word document in a silverlight application?

WOW!!!!!! It worked beautifully!!! thank you again... I had spent a lot of time trying to find a way and you aced it!!!!

 mc

.netdan
.netdan

Contributor

Contributor

3412 points

513 Posts

Re: How to open a word document in a silverlight application?

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

Remember to click "Answer" if this has helped you!

Dan Birch
MCSD, MCAD, MCP
Free Silverlight Controls | Free .NET Silverlight CMS
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities