host office in to wpf
-
8. srpna 2012 9:54
hi everybody
i would like host office in to wpf
can you give ideal or source code
Všechny reakce
-
9. srpna 2012 9:45Moderátor
Hi Check,
Do you want to show office document in wpf? If yes, you can add web browser control from toolbox and the load word document in it.
Even you can opend any document that browser support e.g. word, excel, pdf and swf etc...
Example Load Word
webBrowser1.Navigate("C:\\word.doc");
Example Load Excel
webBrowser1.Navigate("C:\\excel.xls");Hope it helps.
Have a nice day.
Annabella Luo[MSFT]
MSDN Community Support | Feedback to us
- Označen jako odpověď Thinh Phuc Truong Phan 9. srpna 2012 16:18
-
10. srpna 2012 8:35
i sill have a problem when i use this code
webBrowser1.Navigate("C:\\word.doc");
it will load work document in to disk, now show on main screen.
can you help me
thank
-
12. srpna 2012 15:00
You need office viewer for the same, otherwise it will not open inside it, sharepoint has Excel services which can show like Excel, if you want to show Pdf content you can use WebBrowser control- Navržen jako odpověď kishhr 12. srpna 2012 15:01