Article | 41023737 |
Type | HowTo |
Product | Converter |
Version | 5.0.0.1033 |
Date Added | 10/7/2004 |
Submitted by | Mattheos Cotzias |
Keywords |
In the NeedFileConvert event need to modify the success value using the SetEventParamValue
In your HTML CODE:
Sub vdviewer_NeedFileConvert(FileToOpen, TempFileName, CadVer , success )
Dim parameters
Dim destfilename
Dim src
Dim actions
Dim appPath
destfilename = TempFileName
src = FileToOpen
success = False
actions = vdviewer.ActionValidates
If Not (actions And 4194304) = 4194304 Then actions = actions + 4194304
If Not (actions And 8388608) = 8388608 Then actions = actions + 8388608
parameters = "? " + src + "? " + destfilename + "? " + CStr(CadVer) + " ? 1024 ? 768" + " ? " + CStr(actions) + " ? 0 ? 0 ? 1"
appPath = vdviewer.GetUserValue("DrawingConvertAppPath", "vdconv.exe") 'find the full path of vdconv.exe
success = vdviewer.VdShellExecute("", appPath, parameters, 1)
vdviewer.SetEventParamValue 3, success
End Sub
The GetOpenFileFilterFormat event problem with UNICODE is fixed in 5.0.1.1034.