Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Web located PDF File not loaded |
Post Reply |
Author | |
zero_g
Beginner Joined: 19 Jan 12 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 14 Dec 12 at 3:09PM |
Hello,
I tried to open a web located file direct with this code. Dim result As Boolean = CBool(QP.UnlockKey(LicenseKey)) If result = True Then Dim pdf_vorlage As String = "complete link to the file" QP.LoadFromFile(pdf_vorlage, String.Empty) Dim loaded As Boolean = QP.LoadFromFile(pdf_vorlage, String.Empty) Dim err_code As Long = QP.LastErrorCode End If Loaded returns 'false' and err_code =0. Later I tried the direct asccess functionality, but without success. Loaded gives "false" and err_code=411 (file not found) ??? Can anybody help? Kind regards Tom |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
LoadFromFile means 'load from a file on your local machine or network'. In other words, the filename must start with a drive letter or with "\\servername". To view a web file identified with a URL, you must first download it to to one of these locations, typically using http or ftp protocol, then open it with LoadFromFile.
|
|
zero_g
Beginner Joined: 19 Jan 12 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
|
I want to avoid the download of each file, because I want to load a number of files from its web location and read some file informations. Is there really no chance to load directly from the web?
kind regards Tom |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
Somehow, all the bits in the document have to be moved from Timbuktu, or wherever the webserver is, into your program on your machine which is going to read the document. Even if there was a means to 'load from the web location' this would still be happening. If you don't want to save the document file on your local disk, that's fine, but you then have to have your FTP client download and create an in-memory stream and then use LoadFromStream instead of LoadFromFile. Never having used Visual Basic I have no idea whether it has these capabilities, however, which is why I suggested a file transfer. In Delphi, I would probably just use an FTP component to download the file into a MemoryStream object and load QP from that.
|
|
zero_g
Beginner Joined: 19 Jan 12 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
|
yes, I see. In the meantime I developed a small codesample with download functionalit->reading the requested Informations from the files->delete the files.
kind regards Tom |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store