For information on how to allow cookies, see the help of your web browser." To use this service, you must allow cookies.Ĭookies are small text files stored on your computer that communicate when you are logged in. Your browser is currently set to block cookies. Opening the file via a browser gives me this error message: I tried to open the downloaded pdf in a text editor and I saw that it contained HTML information. SaveToFile Salvataggio & "\" & nomeFile & ".pdf", 2 ![]() Set oStream = CreateObject("ADODB.Stream") WinHttpReq.Open "GET", myURL, False 'usr and pwd are commented because in one drive I permit access to everybody that has link, "username", "password" Set WinHttpReq = CreateObject("MSXML2.ServerXMLHTTP.6.0") Sub DownloadFile(indirizzoOnedrive, indirizzoSalvataggio, nomeCommessa)ĭim myURL As String Dim Salvataggio As String Dim nomeFile As String Dim WinHttpReq As Object "Adobe Reader could not open because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." ![]() I am following a bunch of tutorials, but when the download has finished and I try to open the downloaded pdf file I receive this error message: By VBA I have to download a pdf from OneDrive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |