Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
azimabadi
Creator III
Creator III

QWV path in VBScript

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

1 Solution

Accepted Solutions
Not applicable

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

View solution in original post

2 Replies
Not applicable

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

azimabadi
Creator III
Creator III
Author

to retrive only path :

tmpPath = ActiveDocument.GetPathName

lastBackSlash = InStrRev( tmpPath , "\" )

path = Left( tmpPath , (lastBackSlash - 1) )