Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App drive and path
Message
De
22/11/2007 10:56:37
 
 
À
22/11/2007 10:49:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01270674
Message ID:
01270711
Vues:
26
>>>Hi All
>>>
>>>I have an app that tries to load a PDF file into an IE control embedded within a form. I setup the complete path name to the file using:
>>>
>>>
>>>  TPDF_FILE = SYS(5) + SYS(2003) + "\adobe\" + ALLTRIM( lcFileName )
>>>
>>>
>>>Which gives, as an example, a file name like this;
>>>
>>>"C:\my_apps_folder_name\adobe\the_pdf_filename.pdf
>>>
>>>This normally works fine. But now at one client this returns the following for TPDF_FILE:
>>>
>>>"file://servername//my_apps_folder_name//adobe/the_pdf_filename.pdf"
>>>
>>>This then causes a failure in the IE control becuase it cannot find the pdf file to navigate to. How can I solve this so that I get the correct drive and path to my application folder that IE can use to navigate to?
>>>
>>>Thanks
>>>
>>>Jos
>>
>>SYS(2003) returns a single backslash if you are at the root.
>>TPDF_FILE = SYS(5) + addbs(SYS(2003)) + "adobe\" + ALLTRIM( lcFileName )
>
>Tore, I am already putting the backslash in my example above. This is not the issue I think. It has something to do with the double forward slashes and the single forward slash between the "adobe" folder and the file name.
>
>Asking for sys(5) + sys(2003) converts backslashes to double forward slashes. And the drive letter is converted to "file:" . Looks like UNC or something but I am not sure what I need to change in order for the path to the file to be correct for IE.

Strange in deed. Sorry, I have to run. I will follow this thread tonight.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform