Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'A Mathematica Graphic to an ASP.Net WebApplicat...' topicStudent Support Forum > General > "A Mathematica Graphic to an ASP.Net WebApplicat..."

Help | Reply To Topic
Author Comment/Response
Javier Chicote
12/25/04 11:50am

Hi,

I would like to place the Mathematica Graphics output in my ASP.NET WebApplication using Wolfram.NETLink reference.

I tried to use the mathKernel.Graphics property to get the image from the Mathematica graphics output during the last call to mathKernel.Compute.

The problem is that I need to refer a URL for my System.Web.UI.WebControls.Image, and the mathKernel.Graphics property returns a System.Drawing.Image.

I thought about saving the image returned to a temporary file, so that I could get the URL, but I don't know how to do this, or if maybe there is an easier way to place the image in my ASP.NET WebAplication.

Thanks,

Javier Chicote

P.D. This is the part of the code where I try to place the Mathematica Graphics output in my ASP.NET WebApplication:

===============================================

private void computeButton_Click(object sender, System.EventArgs e)
{

if (mathKernel.IsComputing)
{
// Abort the computation
mathKernel.Abort();
}

else
{
// Set the link that this MathKernel will use
mathKernel.Link = iKernelLink;
// Perform the computation
mathKernel.Compute(inputBox.Text);

// Populate the boxes with results
//
// ??? = mathKernel.Graphics[0]
// graphicsImage.ImageUrl = ???
//
}

}



URL: ,
Help | Reply To Topic