| | |
vb:error 424 object required while downloading file (a pdf file location) to app.path
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
vb:error 424 object required while downloading file (a pdf file location) to app.path
0
#1 May 10th, 2009
when excecuted it gives an error 424 object required
what i intend to do is download a pdf file to a location in my pc
what i intend to do is download a pdf file to a location in my pc
vb Syntax (Toggle Plain Text)
DoEvents If DownloadFile(ie3.locationurl, App.Path) Then MsgBox "Download Complete", _ vbOKOnly Or vbInformation, _ "Done" End If ' Download a file. Return True if we are successful. Private Function DownloadFile(ByVal source_file As String, ByVal dest_file As String) As Boolean Dim bytes() As Byte Dim fnum As Integer ' Get the file's contents. On Error GoTo DownloadError bytes() = Inetftp.OpenURL(source_file, icByteArray) ' Remove the file if it exists. On Error Resume Next Kill dest_file On Error GoTo DownloadError ' Write the contents into the destination file. fnum = FreeFile Open dest_file For Binary Access Write As #fnum Put #fnum, , bytes() Close #fnum DownloadFile = True Exit Function DownloadError: MsgBox "Error " & Err.Number & _ " downloading file '" & _ source_file & "' to '" & _ dest_file & "'." & vbCrLf & Err.Description, _ vbExclamation Or vbOKOnly, _ "Download Error" DownloadFile = False Exit Function End Function
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
Re: vb:error 424 object required while downloading file (a pdf file location) to app.path
0
#2 May 12th, 2009
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
Re: vb:error 424 object required while downloading file (a pdf file location) to app.path
0
#3 May 25th, 2009
![]() |
Similar Threads
- Run-time error 424 Object required (Visual Basic 4 / 5 / 6)
- Error Code 424: object required (MS SQL)
- Object required Error (ASP)
- VB6 - Outlook Email set up - Error 424: Object required (Visual Basic 4 / 5 / 6)
- Error 424-object required (Visual Basic 4 / 5 / 6)
- VB6 RTE '424' Object required. (Visual Basic 4 / 5 / 6)
- I get a Runtime Error 424 when trying to access a file in VB (Visual Basic 4 / 5 / 6)
- Run-Time Error 424 (Visual Basic 4 / 5 / 6)
- Runtime Error 424 object required (was: Please Help!) (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: File transfer thru Static IP
- Next Thread: Help: Best way to create an appointment book using VB.Net and Access?
| Thread Tools | Search this Thread |
"crystal .net .net2005 .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationthesis dissertationtopic dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login math memory mobile module mssqlbackend mysql navigate net number opacity open pdf picturebox2 port position print printpreview record regex reports" reuse right-to-left save savedialog search serial settings socket sqldatbase sqlserver storedprocedure string temp textbox timer timespan transparency txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic.net visualstudio.net web wpf wrapingcode xml





