can anyone give me an idea about how to export an Dundas OLAP grid to excell
I am new to Dundas, I would like to export the olap grid to excell. I dont k开发者_C百科now how to do it. can someone help me on this?
I assume the ASP version:
Dim myResponse As HttpResponse = HttpContext.Current.Response
Dim strm As System.IO.Stream = New System.IO.MemoryStream
Dim strToExport As String
OlapGrid.Export(strm)
Dim streamReader As New System.IO.StreamReader(strm)
strm.Position = 0
strToExport = streamReader.ReadToEnd
Try
myResponse.Clear()
myResponse.Buffer = False
myResponse.AddHeader("content-disposition", "attachment;filename=Report2Excel.xls")
myResponse.ContentEncoding = System.Text.Encoding.Default
myResponse.ContentType = "application/vnd.xls"
myResponse.Charset = ""
myResponse.Write(strToExport)
Catch ex As Exception
Finally
myResponse.[End]()
End Try
BTw if you know a solution for the KPI images in the grid let me know
精彩评论