Bonjour,
je voudrais afficher une fenêtre comme celle jointe : image
et j'ai ce code pour faire cela :
le document pdf téléchargé est vide et voici l'erreur qui s'affiche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 response.clear() ' Vide le buffer' ' Dialogue de téléchargement' response.contentType = "application/pdf" response.addHeader "Content-Disposition","attachment; filename=asp.pdf" response.flush() ' Envoie le buffer' Response.End() ' Lecture du fichier' set FSO = Server.CreateObject("Scripting.FileSystemObject") set inF = FSO.OpenTextFile("asp.pdf",1,false) t = inF.readAll inf.close response.write(t) ' Envoie le contenu du fichier'
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 attachement and wasn't correctly decoded)
Partager