找回密码
 立即注册
搜索
查看: 1628|回复: 6

[软件] 脚本求分析,关于右键菜单调用 .vbs转换文件格式

[复制链接]
头像被屏蔽
发表于 2013-10-24 01:26 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2013-10-24 01:57 | 显示全部楼层
13行
Set MyPress = wordApp.Presentations.Open( ls_file)

改成
Set MyPress = wordApp.Documents.Open( ls_file)

试试,很明显presentation应该是ppt特有的方法
回复

使用道具 举报

头像被屏蔽
 楼主| 发表于 2013-10-27 17:26 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2013-10-27 18:01 | 显示全部楼层
你的WORD版本支持轉PDF嗎?
回复

使用道具 举报

头像被屏蔽
 楼主| 发表于 2013-10-27 18:04 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

     
发表于 2013-10-28 02:10 | 显示全部楼层
宏 发表于 2013-10-27 17:26
修改后,出现windows找不到指定转换的文件路径的对话框(把最后的32改成5此时有PDF文件生成了,也有word ...
Const wdFormatDocument                    =  0
Const wdFormatDocument97                  =  0
Const wdFormatDocumentDefault             = 16
Const wdFormatDOSText                     =  4
Const wdFormatDOSTextLineBreaks           =  5
Const wdFormatEncodedText                 =  7
Const wdFormatFilteredHTML                = 10
Const wdFormatFlatXML                     = 19
Const wdFormatFlatXMLMacroEnabled         = 20
Const wdFormatFlatXMLTemplate             = 21
Const wdFormatFlatXMLTemplateMacroEnabled = 22
Const wdFormatHTML                        =  8
Const wdFormatPDF                         = 17
Const wdFormatRTF                         =  6
Const wdFormatTemplate                    =  1
Const wdFormatTemplate97                  =  1
Const wdFormatText                        =  2
Const wdFormatTextLineBreaks              =  3
Const wdFormatUnicodeText                 =  7
Const wdFormatWebArchive                  =  9
Const wdFormatXML                         = 11
Const wdFormatXMLDocument                 = 12
Const wdFormatXMLDocumentMacroEnabled     = 13
Const wdFormatXMLTemplate                 = 14
Const wdFormatXMLTemplateMacroEnabled     = 15
Const wdFormatXPS                         = 18


17?
回复

使用道具 举报

头像被屏蔽
 楼主| 发表于 2013-10-28 11:19 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|上海互联网违法和不良信息举报中心|网上有害信息举报专区|962110 反电信诈骗|举报电话 021-62035905|Stage1st ( 沪ICP备13020230号-1|沪公网安备 31010702007642号 )

GMT+8, 2025-9-10 02:00 , Processed in 0.177151 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表