返回已安装的文件转换器的信息。如果未安装任何转换器,则返回
null。
Variant 类型,只读。
语法
表达式.FileConverters(Index1,
Index2)
表达式 一个代表 Application 对象的变量。
参数
名称 |
必选/可选 |
数据类型 |
说明 |
Index1 |
可选 |
Variant |
转换器的长名称,包括 Windows 中的文件类型搜索字符串(例如“Lotus 1-2-3 Files (*.wk*)”)。 |
Index2 |
可选 |
Variant |
转换器动态链接库或代码资源的路径。
|
说明
如果未指定参数,本属性返回包含所有已安装文件转换器的信息的数组。数组中每一行包含一个文件转换器的信息,如下表所示。
列 |
内容 |
1 |
转换器的长名称 |
2 |
转换器动态链接库或代码资源的路径 |
3 |
文件扩展名搜索字符串 |
示例
本示例显示是否安装了“Multiplan”文件转换器。
示例代码 |
let installedCvts = Application.FileConverters
let foundMultiplan = false
if(installedCvts != null) {
for(let arrayRow = 1; arrayRow <= installedCvts.length - 1; arrayRow++) {
if(installedCvts[arrayRow, 1].indexOf("*Multiplan*") > -1) {
foundMultiplan = true
}
}
}
if(foundMultiplan == true) {
MsgBox("Multiplan converter is installed")
}
else {
MsgBox("Multiplan converter is not installed")
}
|
find out specific file converter installed list installed file converters