类型不匹配: 'gettempfilename'

来源:百度知道 编辑:UC知道 时间:2024/05/30 11:59:39
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'GetTempFileName'
/workflow/WorkFlow/com_previewFile.asp, 第 134 行

fileName = GetTempFileName(viewID, esName)
fs.CopyFile filePath, TempPath & fileName

ConvertPlus TempPath & fileName, fileName

看看你给GetTempFileName这个函数传递的两个参数的类型,是不是这个函数所需要的,比如是否是函数里定义了viewID需要是int型,而你传了一个string类型。

通常是你建立数据集、记录集对象不匹配。

检查你的代码。