Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 1070
Product
XFile
Title
How can I detect the version of XFile installed on the client?
Problem

Is there a way, using XFile's object model, to detect which version is installed on the client machine?

Solution

There is an undocumented Version property on the XFRequest object which will return the version number of saxfile.dll. There is no Version property for the visual control (the AXFFile object) so make sure to get a handle on the XFRequest object.

Examples:

Client-side VBScript:

<script Language="VBScript">
'--- This assumes XFile is already installed on the client.
'--- Otherwise the object should be instantiated using an OBJECT tag
dim XFile = CreateObject("SoftArtisans.XFRequest")
msgBox(XFile.Version)
</script>

Client-side JavaScript:

<script type="text/javascript">
// This assumes XFile is already installed on the client.
// Otherwise the object should be instantiated using an OBJECT tag
var xfile;
xfile = new ActiveXObject("SoftArtisans.XFRequest");
alert(xfile.Version);
</script>
Visual C++:

BSTR bstrVersion; 
HRESULT hr; 
hr = pXFRequest->get_Version(&bstrVersion); 

Created : 10/9/2007 10:35:42 AM (last modified : 10/9/2007 10:35:42 AM)
Rate this article!
 
Comments