惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - caoyang.org

jupyter centos 6 yum源记录,离线下载rpm包的办法 使用命令提示符连接到无线网络 linux系统的ssh服务开启方法 nodejs dateformat date-utils nodejs async nodejs dateformat date-utils - caoyang.org nodejs timer block-timer timer-ease linux 修改 ssh 的端口号,启动hg服务 linux 下添加 路由 【msdn wpf forum翻译】TextBox中文本 中对齐 的方法 - caoyang.org 【msdn wpf forum翻译】TextBlock等类型的默认样式(implicit style)为何有时不起作用? 【msdn wpf forum翻译】获取当前窗口焦点所在的元素 【msdn wpf forum翻译】如何在wpf程序(程序激活时)中捕获所有的键盘输入,而不管哪个元素获得焦点? 《Applications=Code+Markup》读书笔记 2(第二章 基本画刷) 《Applications=Code+Markup》读书笔记 1(第一章 初识Application和Window) Bind Enum to Combobox.SelectedIndex 如何捕获正在执行的函数名? wpf中显示HTML(转自http://steeven.cnblogs.com/archive/2006/06/12/424258.html)
【msdn wpf forum翻译】在wpf程序中显示一个doc文件的内容
caoyang.org · 2009-07-30 · via 博客园 - caoyang.org

原文链接: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/0b76919e-864c-476e-b259-427d73463c71


在DocumentViewer控件中没法直接显示一个 .doc文件 ,  但在wpf程序中显示一个doc文件至少有以下三种
1. 使用 WebBrowser 来显示 .doc文件,如
    this.webBrowser1.Navigate(@"c:\test.doc");
2. 使用DSO Framer control在wpf程序中host .doc文件,参见下文:
    Hosting Office in a WPF Application
    http://www.drwpf.com/blog/Home/tabid/36/EntryID/3/Default.aspx
3. 将 .doc 文件转换为 XPS 文件, 然后使用 DocumentViewer 来显示内容, 参见下文:
    Generate XPS from Word documents with VB 2008 and WPF
    http://www.codeproject.com/KB/office/GenerateXPSfromWordVB.aspx


注:其中1,2两种方法需要机器上安装了word,所以,综上可知,较为完美的显示一个doc文件还是只能靠word的支持