T
Tom John
Hi
I am using Office Web Components to generate a GIF image, which i want
to display in a picture box.
However i am having a problem when i attempt to load the image into
the picture box. Firstly i was saving the image using the Chartspace
Export and passing the path to the PictureBox load, however i think
that the image is not saved properly before the picturebox attempts to
load it.
Therefor i figured streaming it would be pretty cool, but i can't get
it to work, casting problems:
In the form load:
ChartOverviewPicture.Image.FromStream(GenerateChart())
Private Function GenerateChart() As Stream
'Code to generate chart
Return ChartSpace.GetPicture("gif", 500, 300)
End Function
Anyone ideas would be great.
Thanks
Tom
I am using Office Web Components to generate a GIF image, which i want
to display in a picture box.
However i am having a problem when i attempt to load the image into
the picture box. Firstly i was saving the image using the Chartspace
Export and passing the path to the PictureBox load, however i think
that the image is not saved properly before the picturebox attempts to
load it.
Therefor i figured streaming it would be pretty cool, but i can't get
it to work, casting problems:
In the form load:
ChartOverviewPicture.Image.FromStream(GenerateChart())
Private Function GenerateChart() As Stream
'Code to generate chart
Return ChartSpace.GetPicture("gif", 500, 300)
End Function
Anyone ideas would be great.
Thanks
Tom