- First the office document should be converted to XPS type document. Please look at this post.
- Then bind it to the Document property of the DocumentViewer control.
XAML
<DocumentViewer Name="myDocumentViewer" Margin="0,0,0,59">
</DocumentViewer>
And code behind;
myDocumentViewer.Document = this.ConvertOfficeDocToXPSDoc(this.FileName, this.newXPSDocumentName).GetFixedDocumentSequence();
That's all you need to do.
Hi,I have studied how to View Office documents in WPF Application
ReplyDelete-Hari
Theosoft
Good view on WPF application. WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework for more information and free tutorials free demos visit.....
ReplyDeleteCheck this site tekslate for indepth wpf-tutorials
Go here if you’re looking for information on wpf-tutorials
thanks for sharing...
ReplyDeleteIELTS Coaching in chennai
German Classes in Chennai
GRE Coaching Classes in Chennai
TOEFL Coaching in Chennai
spoken english classes in chennai | Communication training
Good view on WPF application. WPF combines application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework for more information and free tutorials free demos visit.....
ReplyDelete| Certification | Cyber Security Online Training Course|
Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course|
CCNA Training Course in Chennai | Certification | CCNA Online Training Course|
RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai|
SEO Training in Chennai | Certification | SEO Online Training Course