Bonjour! J'ai une invasion de carrés et autres " !þÿÿÿ#$þÿÿÿ&þÿÿÿÿ" en plus du fichier meme quand j'ouvre un document .doc ou .xls avec ie. Pourtant j'utilise le code fourni par MSDN...
(je fais meme un response.clear avant...) Si vous connaissez un moyen je suis preneur car je ne je ne sais plus trop quoi faire pour gérer le problème.
Merci
<%
'Set the content type to the specific type that you are sending.
Response.ContentType = "application/x-msexcel"
Const adTypeBinary = 1
Dim strFilePath
strFilePath = "C:\ExcelFiles\Excel1.xls" 'This is the path to the file on disk.
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
%>