Hi:
I just placed my working chart inside a RadAjaxPanel and the print functionally is giving me a javascript runtime error on the { before the finally.
try{a._webRequest.completed(Sys.EventArgs.Empty)}finally{if(a._xmlHttpRequest!=null)
The JScript message says, it may be caused by response.write.
So, there is the response write. So, how am I supposed to get the PNG image to the users?
Phil
I just placed my working chart inside a RadAjaxPanel and the print functionally is giving me a javascript runtime error on the { before the finally.
try{a._webRequest.completed(Sys.EventArgs.Empty)}finally{if(a._xmlHttpRequest!=null)
The JScript message says, it may be caused by response.write.
Using _ms As System.IO.MemoryStream = New System.IO.MemoryStream()
_radChart.Save(_ms, System.Drawing.Imaging.ImageFormat.Png)
page.Response.Clear()
page.Response.ClearHeaders()
page.Response.AddHeader("Content-disposition", "attachment; filename=" & pngName & ".png")
page.Response.AddHeader("Content-type", "image/png")
page.Response.BinaryWrite(_ms.ToArray())
page.Response.End()
End Using
Phil