Load Word Excel into WPF -


I would like to load the Word or Excel document in the window of a WPF application so that users can see and edit the document. Is there any way to achieve this?

What can you do to simplify things XPS that comes with office or Windows ( Which can not be missed) as a printer named "Microsoft XPS Document Writer".

Once you have a document, it can be displayed using a view:

  & lt; Document View Name = "docContent" />  

And just set up the document.

  System.Windows.Xps.Packaging.XpsDocument doc = new System.Windows.Xps.Packaging.XpsDocument ("MyDoc.xps", System.IO.FileAccess.Read); DocContent.Document = doc.GetFixedDocumentSequence ();  

To work for it, you only need to reference "Reich Framework".

For editing support, you can use the XPS Manipulation strategies provided by the Exps specification.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -