欢迎您:游客!请先
登录
或
注册
风格
恢复默认设置
|
展区
文件集浏览
图片集浏览
Flash浏览
音乐集浏览
电影集浏览
|
搜索
Foxtable(狐表)
→
用户栏目
→
专家坐堂
→ 代码读取word文档字数统计,得到的结果总是不准确??麻烦老师看看
新的主题
投票帖
小字报
下一主题 >>
<< 上一主题
共有
2654
人关注过本帖
平板
打印
复制链接
主题:代码读取word文档字数统计,得到的结果总是不准确??麻烦老师看看
cnsjroom
小
大
1楼
|
信息
|
搜索
|
邮箱
|
主页
|
UC
加好友
发短信
等级:七尾狐
帖子:
1571
积分:11238
威望:0
精华:0
注册:
2021/1/17 17:06:00
代码读取word文档字数统计,得到的结果总是不准确??麻烦老师看看
Post By:2021/1/19 12:29:00 [
只看该作者
]
Dim app As New MSWord.Application
try
Dim dlg As New OpenFileDialog
dlg.Filter = "|*.*"
If dlg.ShowDialog =DialogResult.OK Then
Dim doc = app.Documents.Open(dlg.FileName)
Dim IncludeFootnotesAndEndnotes = True
Dim y = doc.ComputeStatistics(Microsoft.Office.Interop.Word.WdStatistic.wdStatisticCharactersWithSpaces, IncludeFootnotesAndEndnotes)
msgbox(y)
app.Visible = False
End If
catch ex As exception
msgbox(ex.message)
app.Quit
finally
End try
代码读取word文档字数统计,得到的结果总是不准确??麻烦老师看看
下一主题 >>
<< 上一主题
RSS2.0
|
Xhtml无图版
|
Xslt无图版
Copyright © 2000 - 2018
foxtable
.com
Tel: 4000-810-820 粤ICP备11091905号
Powered By
Dvbbs
Version 8.3.0
页面执行时间 0.02344 秒, 5 次数据查询