imports System.Io imports System.Text Sub Download Dim mstream As New MemoryStream() lxmlDoc.LoadXml(ldstOutPut.GetXml) mstream = Generatefile() ‘ Dim bytearray() As Byte bytearray = mstream.ToArray mstream.Flush() mstream.Close() Response.Clear() ‘ Add a HTTP header to the output stream that specifies the default filename for the browser’s download dialog Response.AddHeader(“Content-Disposition”, “attachment; filename=anyfilename.csv”) ‘ Add a HTTP header to the… (0 comment)