PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → fichier affiche dans une nouvelle page
fichier affiche dans une nouvelle page
Iniciado por Frederic, 24,feb. 2021 16:15 - 6 respuestas
Miembro registrado
51 mensajes
Publicado el 24,febrero 2021 - 16:15
Bonjour ,

J'aimerais afficher le fichier dans un nouvelle onglet du navigateur et non en place de la page actuel .

FichierAffiche("D:\WWWRoot\LUMIEREDEDEMAIN\Donnees\Rep1\Support.pdf",typeMimePDF)

Quelqu'un aurais une idée ?

Merci

Frederic

--
Merci .
Cordialement

FDU
Miembro registrado
1.623 mensajes
Popularité : +100 (114 votes)
Publicado el 24,febrero 2021 - 16:42
Hello,

Il faut simplement choisir la destination de l'action dans la description du champ qui déclenche le code :


Publicado el 24,febrero 2021 - 17:04
merci je vais essayer .
Publicado el 24,febrero 2021 - 17:47
J ai essayer et il me le refuse .
Miembro registrado
1.603 mensajes
Popularité : +64 (70 votes)
Publicado el 25,febrero 2021 - 10:50
Bonjour

et avec FichierAffiche(sFichier, "application/pdf") ?

--
Cordialement
François
Miembro registrado
51 mensajes
Publicado el 26,febrero 2021 - 09:37
il s affiche mais dans le même onglet du navigateur .

--
Merci .
Cordialement

FDU
Miembro registrado
1.603 mensajes
Popularité : +64 (70 votes)
Publicado el 26,febrero 2021 - 11:00
Bonjour,

testé ce matin en version 25 : page AWP et avec destination : _self
le fichier PDF sous Chrome est automatiquement téléchargé et ne s'affiche donc pas directement.
De mémoire "nouvel onglet" fonctionnait bien.

--
Cordialement
François