Wondering if anyone can help with the problem I'm encountering. I've put togther a piece of code to fulfil a requirement to download files from Livelink using VBA in Excel. As a number of files are saved within a single node, the code must first check the files contained within that node, before determining the correct one and then downloading it. The process downloads the most appropriate file from each node and then processes the files on the hard drive.
The second part of this process works fine, in that I can stream the file to the local hard drive using an XMLHTTP request and then unzip it using the code. To accomplish the first part, I've been running a web query which outputs the specific table to an Excel sheet, which I then parse using an algorithm (the files are saved using a specific naming convention which makes identifying the most recent a simple process).
The problem I've encountered is that the web query returns no data the first time it's run after the application is opened, and has to be run manually once - after this, any subsequent web queries run with no issues. I've attempted to use SendKeys to run the query 'manually' on start up, but when this opens the web query page it sends all remaining keystrokes to the application instead of the web query window.
I've even tried to use WebDAV to access the directory structure, either by opening the WebDAV link directly in Excel or using ADO / XMLXTTP to stream it, but I always get the same message:
'This resource is a WebDAV collection, and must be accessed using a WebDAV client'
I'm now running out of ideas. I'm using Excel 2003 and am not sure about the version of Livelink. Would be happy to share any code with anyone willing to help me crack this one.
Mark L
The second part of this process works fine, in that I can stream the file to the local hard drive using an XMLHTTP request and then unzip it using the code. To accomplish the first part, I've been running a web query which outputs the specific table to an Excel sheet, which I then parse using an algorithm (the files are saved using a specific naming convention which makes identifying the most recent a simple process).
The problem I've encountered is that the web query returns no data the first time it's run after the application is opened, and has to be run manually once - after this, any subsequent web queries run with no issues. I've attempted to use SendKeys to run the query 'manually' on start up, but when this opens the web query page it sends all remaining keystrokes to the application instead of the web query window.
I've even tried to use WebDAV to access the directory structure, either by opening the WebDAV link directly in Excel or using ADO / XMLXTTP to stream it, but I always get the same message:
'This resource is a WebDAV collection, and must be accessed using a WebDAV client'
I'm now running out of ideas. I'm using Excel 2003 and am not sure about the version of Livelink. Would be happy to share any code with anyone willing to help me crack this one.
Mark L