Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
i need to get the path of QVW file in my module.
in script, i can call DocumentPath to retrive the path, but in VBScript this will not work.
There is a object.Path in VBScript syntax but i need to initialize the object first.
Anyone has an idea how can i get the path?
Regards
Peyman
Here is the snippet for Active QVW Path and File Name in VBS, got it from API Guide:
Sub showPath
msgbox(ActiveDocument.GetPathName)
End Sub
Thanks,
Narasimha
Here is the snippet for Active QVW Path and File Name in VBS, got it from API Guide:
Sub showPath
msgbox(ActiveDocument.GetPathName)
End Sub
Thanks,
Narasimha
to retrive only path :
tmpPath = ActiveDocument.GetPathName
lastBackSlash = InStrRev( tmpPath , "\" )
path = Left( tmpPath , (lastBackSlash - 1) )