jorrie_zo
Messages postés3Date d'inscriptionvendredi 21 septembre 2007StatutMembreDernière intervention28 septembre 2010
-
17 mars 2008 à 18:03
nhervagault
Messages postés6063Date d'inscriptiondimanche 13 avril 2003StatutMembreDernière intervention15 juillet 2011
-
23 mars 2008 à 00:28
SAlut a tous,
faut-il etre obligatoirement en dotnet 2 pour exporter vers Excel car j'ai toujours des problemes lors de mes export , la page se bloque
nhervagault
Messages postés6063Date d'inscriptiondimanche 13 avril 2003StatutMembreDernière intervention15 juillet 201137 23 mars 2008 à 00:28
Salut
Voici un export excel pour asp3
<%
'Set the content type to the specific type that you are sending.
Response.ContentType = "application/x-msexcel"
Response.AddHeader "content-disposition", "attachment;filename=test.xls"
Const adTypeBinary = 1
Dim strFilePath
strFilePath = "C:\test.xls"
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath