MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Setting the ResultFormat in a ASP.NET WebApplication.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54912] Re: [mg54875] Setting the ResultFormat in a ASP.NET WebApplication.
  • From: Todd Gayley <tgayley at wolfram.com>
  • Date: Sun, 6 Mar 2005 00:56:01 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

At 12:34 AM 3/5/2005, Javier Chicote wrote:
>Hi,
>
>The ResultFormat of the MathKernel is set to "OutputForm" as default, and I
>would like to set it to other ResultFormatTypes, like "StandardForm" or
>"MathML". How can I do this? It says that I cannot convert a string to
>'Wolfram.NETLink.MathKernel.ResultFormatType' when I do like this:
>
>Global.mathKernel.ResultFormat = "StandardForm";
>
>or like this:
>
>Global.mathKernel.ResultFormat =
>(Wolfram.NETLink.MathKernel.ResultFormatType) "StandardForm";
>
>How can I set the ResultFormat then?


Javier,

ResultFormatType is an enum, so you use its values like this:

     Global.mathKernel.ResultFormat = MathKernel.ResultFormatType.StandardForm;


Todd Gayley
Wolfram Research 


  • Prev by Date: Re: How to match/balance parenthesis?
  • Next by Date: Re: repeating elements in a list
  • Previous by thread: Re: Re: where is DrBob's web site?
  • Next by thread: Re: Setting the ResultFormat in a ASP.NET WebApplication.