Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App drive and path
Message
De
22/11/2007 10:41:28
 
 
À
22/11/2007 09:11:49
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:
01270700
Vues:
22
>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 )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform