开发者

can anyone give me an idea about how to export an Dundas OLAP grid to excell

开发者 https://www.devze.com 2023-01-15 09:17 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消