Skip to main content

Posts

Showing posts from July, 2011

Dynamic Image Url Code Behind Code To Export Multiple Images to Word File

[vb.code] * Write This Code in Button Click Event. *  img1,2,3,4 variable is used to get and store the image name which is stored in the session. * My Scenario was export all four chart control images into one ms-word file. * Here all image name are unique and stored into the session variable. Protected Sub btnExportAllChart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExportAllChart.Click             Dim serverurl As String =   Request.Url.GetLeftPart(UriPartial.Authority) + Request.ApplicationPath + "/TempImageFiles/"         Dim img1 As String = serverurl + Session("ImageName1")         Dim img2 As String = serverurl + Session("ImageName2")         Dim img3 As String = serverurl + Session("ImageName3")         Dim img4 As String = serverurl + Session("ImageName4")         HttpContext.Current.Response.Clear()         HttpContext.Current.Response.Charset = ""         HttpContext.Curren