Product : Converter, Version : 5.0.0.1033, ArticleID : 41023737

HowTo : Cannot open DWG/DXF files from control inside IE.

Article41023737
TypeHowTo
ProductConverter
Version5.0.0.1033
Date Added10/7/2004
Submitted byMattheos Cotzias
Keywords

Subject

Cannot open DWG/DXF files from control inside IE.

Summary

Cannot open DWG/DXF files from control inside IE using FileConvertert.
ALSO
the GetOpenFileFilterFormat doesn't work correct with UNICODE.

Solution

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.