P
premier
I have a web page that's taking in data from text boxes, drawing a
chart to represent the data, and then outputting the chart in PNG
format. What I cant figure out how to do, is to output the chart as
part of an aspx web page.
Ideally, I'd output it to the bottom of the web page that the user
used to send the data to the server. Or, I could output the PNG as
part of a new Web page. I'm just lost on the details.
I'm currently outputting the PNG as follows (the memorystream is
needed when dealing with PNGs):
Dim myMemoryStream As New MemoryStream()
myBitmap.Save(myMemoryStream, ImageFormat.Png)
myMemoryStream.WriteTo(Response.OutputStream)
myMemoryStream.Close()
Since I have the memory stream, perhaps I could insert into a file ?
Any guidance is appreciated.
Thanks
chart to represent the data, and then outputting the chart in PNG
format. What I cant figure out how to do, is to output the chart as
part of an aspx web page.
Ideally, I'd output it to the bottom of the web page that the user
used to send the data to the server. Or, I could output the PNG as
part of a new Web page. I'm just lost on the details.
I'm currently outputting the PNG as follows (the memorystream is
needed when dealing with PNGs):
Dim myMemoryStream As New MemoryStream()
myBitmap.Save(myMemoryStream, ImageFormat.Png)
myMemoryStream.WriteTo(Response.OutputStream)
myMemoryStream.Close()
Since I have the memory stream, perhaps I could insert into a file ?
Any guidance is appreciated.
Thanks