Home Support Site Search Faq Register Login  
FileUp
Download Is Not complete, Can't Reset - AXFFileDownload ActiveX

Thread Starter: dleonard   Started: 06-12-2012 8:47 AM   Replies: 3
  12 Jun 2012, 8:47 AM
dleonard is not online. Last active: 6/18/2012 4:59:25 PM dleonard

Not Ranked
Joined on 06-12-2012
Posts 2
Download Is Not complete, Can't Reset - AXFFileDownload ActiveX

Using the AXFFileDownload ActiveX control in VB6. When adding file with an invalid Target (URL) an error is generated and properly trapped. The second time through however, the following message is displayed (when a reset is attempted in the code):

Run-time error '-2147352567 (800020009)':

Download is not complete, can't reset

Can't find any information in the documentation regarding this error.

 


  
  14 Jun 2012, 11:00 AM
Joy_M is not online. Last active: 6/3/2014 2:57:00 PM Joy_M

Top 10 Posts
Joined on 12-15-2004
Posts 579

SoftArtisans Technical Services

Support team
Re: Download Is Not complete, Can't Reset - AXFFileDownload ActiveX

There is a known issue in XFile that when an error is encountered when prosessing a download, the reset method doesn't work properly.  Reset does work properly after a successful file transfer.  A workaround would be to have your javascript refresh the page.    Would that work for you? 

Thanks,

Joy


  
  18 Jun 2012, 2:34 PM
dleonard is not online. Last active: 6/18/2012 4:59:25 PM dleonard

Not Ranked
Joined on 06-12-2012
Posts 2
Re: Download Is Not complete, Can't Reset - AXFFileDownload ActiveX

Thanks for the response Joy. I'm not sure what page you're referring to regarding the refresh. In my scenario, I have a VB client app attempting to download a file from a (asp page) URL that's invalid. My only workaraound has been to restart the client app.

 


  
  21 Jun 2012, 9:43 AM
Joy_M is not online. Last active: 6/3/2014 2:57:00 PM Joy_M

Top 10 Posts
Joined on 12-15-2004
Posts 579

SoftArtisans Technical Services

Support team
Re: Download Is Not complete, Can't Reset - AXFFileDownload ActiveX

Sorry, I missed the part in your original message where you said this was VB6.  Restarting the client app is obviously not ideal.  Perhaps you can create your own "reset" method that recreates the object by setting the variable to nothing, resestting it to a new instance of XFile, and resetting all the properties?  

- Joy


  
 Page 1 of 1 (4 items)
SoftArtisans Forums » SoftArtisans Products » FileUp » Download Is Not complete, Can't Reset - AXFFileDownload ActiveX