Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Transfer Control - event not fired...

Status
Not open for further replies.

gny

Programmer
Jun 3, 2001
116
SE
I use the Internet Transfer Control in an Excel form and can't get the Execute method to work properly. With OpenURL everything works fine, but I have to use Execute in order to be able to send an HTTP header (user-agent).

Anyway, my problem is this: The
Code:
StateChanged
event of the control never fires with the parameter
Code:
State
being
Code:
icResponseCompleted
.
I have checked transmission with a packet capture app and that show that the page is requested from the server and the server replies, but it only sends about 28000 bytes. Why? Is the buffer full? I really don't want to have to use Winsock for this...Do YOU have any ideas?

Thanks!
 
What is your app doing in the mean time when the transfer is going on?

Use this right after your inet.execute command:

'Wait for complete download
Do Until Inet.StillExecuting = False
DoEvents
Loop

Without seeing your code, it is hard to say...

One thing I am trying to do is to find out how much of the buffer has been filled. If anyone knows how to access that, please post.

I am having problems with my inet transfer. It will slow down processes when it starts to fill the buffer. So anything that anyone has would be great.

Aaron
 
Hi Aaron!
I could never get the inet transfer control to work properly for me.
I used the method in this thread instead:
thread181-128504
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top