免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2506 | 回复: 3

apile: a OLE Word question, thanks [复制链接]

论坛徽章:
0
发表于 2003-05-13 21:42 |显示全部楼层
i want to extract some words from MS doc file, then i wrote the codes as following

use Win32::OLE; # Object Linking and Embed
use Win32::OLE::Const 'Microsoft Word'; # Defines constants word k
my $Word = Win32::OLE->;GetActiveObject('Word.Application') || Win32::OLE->;new('Word.Application', 'Quit');
$a= $Word->;Selection->;Tables(1)->;Cell(2,2)->;Range->;{Text};
print $a;
above codes worked and could get the text i need.
so i thought
$a= $Word->;Selection->;wdline(1)->;Range->;{Text};
could work as well, but seemed the wdline(1) is a undefined value, i have been checking perl\html\OLE-Browser about the ole value, but have not work out the problems yet.

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
发表于 2003-05-13 22:58 |显示全部楼层

apile: a OLE Word question, thanks

sorry..M$的東西..我不過是很熟悉..^^
我目前作業環境都是 UNIX Like的...
M$的東西我只用telnet 工具..與用word打報告...

论坛徽章:
0
发表于 2003-05-13 23:20 |显示全部楼层

apile: a OLE Word question, thanks

555555.........

论坛徽章:
0
发表于 2003-05-14 14:54 |显示全部楼层

apile: a OLE Word question, thanks

原帖由 "apile" 发表:
sorry..M$的東西..我不過是很熟悉..^^
我目前作業環境都是 UNIX Like的...
M$的東西我只用telnet 工具..與用word打報告...


me too  
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP